In event code on component save event, I want to publish a page, the type of the page is xml. so once I publish the page, I get a .xml file at a location which is been used on the site to display image gallery.
My question is: My component has multimedia components(thumbnail image and preview image) (images) attached to it. So when the component save event is called, the code will read that component and make a xml node with the image path for the image gallery to refer. I believe that when a user is adding the images to the component, the images are actually not lying on the server. So, I don't think I will get the image path as the images have not yet been published on the server, so they don't lay there.
And for this reason, in one of the method i have used page publish method, because i believe that publishing the page publishes the component(this component has multimedia component attached to it).
But I want to know is there any work around for this, or is there a problem in my understanding? Is there anything new in Tridion 2011 which can take care of this?