aspose file tools*
The moose likes XML and Related Technologies and the fly likes Converting Document object to InputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Converting Document object to InputStream" Watch "Converting Document object to InputStream" New topic
Author

Converting Document object to InputStream

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
hello guys,

I have a document object and I want to convert it to InputStream . If it possible then please let me know in brief. If not then I have other option to Convert from String to InputStream . I am trying the following but it gives me an error it might be class mismatch.

InputStream inputStream = new StringReader(data);

Please give your opinions

thanks in advance

gurpreet
Giordano Maestro
Greenhorn

Joined: Dec 07, 2012
Posts: 2
There is a convertion utility http://giordanomaestro.blogspot.it/2012/12/orgw3cdomdocument-convertion-utils.html
Giordano Maestro
Greenhorn

Joined: Dec 07, 2012
Posts: 2
This a link to a convertion utility
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting Document object to InputStream