File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Java in General
Joined: Aug 31, 2004
Aug 04, 2005 20:36:00
I am using a method that writes it's contents to an output stream.
How can I instead capture those contents into a
public void process(OutputStream outputStream)
author and iconoclast
Joined: Jul 08, 2003
Aug 04, 2005 20:46:00
You can use a
to collect the data, then use toByteArray() to get the bytes, and then construct a String from them.
[Jess in Action]
I agree. Here's the link:
reading the content in outputstream
BLOB(image) -> ByteArrayOutputStream -> display on screen
excel file generation in weblogic portal
How to transform a OutputStream in a InputStream?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013