manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Re: document.getBinaryStream()
Date Mon, 02 May 2011 16:50:07 GMT
Using a temporary file is the right approach.

Karl


On Mon, May 2, 2011 at 12:30 PM,  <hokie@farzad.net> wrote:
> So I just learnt that you can not reuse a stream.  In my code I create a
> hash from the file content, and then I want to sent it via http to the
> archive server.  You guessed it the InputStream is not valid anymore.  The
> best solution I've figured out was to read the content into a temporary file
> where I can restart it.  Thoughts?  Thanks!
>

Mime
View raw message