A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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]
BLOB(image) -> ByteArrayOutputStream -> display on screen
excel file generation in weblogic portal
How to transform a OutputStream in a InputStream?
reading the content in outputstream
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015