File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 1
There is a convertion utility http://giordanomaestro.blogspot.it/2012/12/orgw3cdomdocument-convertion-utils.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Converting Document object to InputStream
 
Similar Threads
How to convert a String to Element, and add to an existing Document obj?
xml-xml transformation exception
JAXP/W3C DOM Question
InputStream -> File
Writer to InputStream or source