Upload an HTML file along with images contained in that page

Hi/ I would like to copy an html file to a particular destination and also all the images contained in that file. Can u please help me how can I find the image names(paths) from the html page in run time ?

Thats going to be a bit of programming, but basically you will have to find the IMG or img tags, extract the SRC or src attribute and figure out what that means in terms of a URL. Keeping in mind that an image source might be an absolute or a relative URL - also that there may be a BASE tag in the page that specifies a base different from the one the page lives at. Once you figure out the real URL you can open a URLConnection, get an InputStream, and read the binary image data. Bill

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com