Amazing. Just exactly what I need. Thank you!
-----Original Message-----
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 12:40 PM
To: Slide Users Mailing List
Subject: Re: getMethod - route the inputstream directly to an outputstream ?
Do I understand you right? You have an input stream and want to copy
it to an output stream?
That's easy you can use
public static long copy(InputStream in, OutputStream out) throws
IOException;
available in in Slide
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide/
store/util/FileHelper.java?view=markup
and something similar in probably many places.
Oliver
P.S.: Or do you want an outputstream to disguise as an input stream?
Writing it to a temporary file would work, but would not be the
fastest solution possible.
For a more efficient solution the problem is that you will have to
wait until the OutputStream
A more reasonable solution that
On Wed, 3 Nov 2004 12:09:10 -0500, Nick Longinow
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I realize this is actually more of a java language issue, but I wanted to
be
> sure I am using the webdav api correctly.
> I'm using the getMethod to retrieve an input stream, whose contents I want
> to route to an outputstream. I have some very large files (> 150 mg) that
> are blowing out my byte array buffer that I use to read the input stream
and
> then route to my output stream.
> Does anyone know of a more efficient way of getting my file input stream
> into an output stream ?
> Thanks
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]