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
Java SE 8 for the Really Impatient
this week in the
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:
excel file generation in weblogic portal
reading the content in outputstream
How to transform a OutputStream in a InputStream?
BLOB(image) -> ByteArrayOutputStream -> display on screen
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014