Load word document from a url in java

When document is placed in computer local drive it can be loaded into memory just by using

Document doc = new Document("D:\\Test\\File.docx");

Now operations can be performed using the doc object.

When same file is placed on a fileserver then how do i load that word document in java . On windows file can be accessed by placing below url on browser.

url = http://192.168.21.1/fileServer/folder/File.docx

i did it.
fileURL = new URL(url);
InputStream is = fileURL.openStream();
Document doc = new Document(is);
perform operations on object doc

Now if someone can help me out i have to write final doc object back to that url location.

Hi Rakesh,

Thanks for your inquiry. Aspose.Words does not provide API to upload the exported document to specific url. You may save document to disk or save it to stream object and update it to desired location using Java API.

Please let us know if you have any more queries.

Thanks for the reply Tahir. I had to save the document to the disk as per your suggestion.