HTTPRequest.ReadBinary

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I call HTTPRequest.ReadBinary twice... how come the second time it an
empty string?

Do I need to reset the input stream?

Thanks.
 
the request stream is not buffered, so its read once. if you need to
backup, you can stream it into a memory stream (which is what it would
have to do.)

-- bruce (sqlwork.com)
 
the request stream is not buffered, so its read once. if you need to
backup, you can stream it into a memory stream (which is what it would
have to do.)

Oh IC, so BinaryRead is actually mapped to the stream. That makes sense.

I thought it actually would be smart enough to dump the data more than
once.

Thanks.
 
Spam Catcher said:
Oh IC, so BinaryRead is actually mapped to the stream. That makes sense.

I thought it actually would be smart enough to dump the data more than
once.

It doesn't do that in classic ASP and since its purpose it be compatible
with older ASP code it doesn't do it .NET either.
 
It doesn't do that in classic ASP and since its purpose it be compatible
with older ASP code it doesn't do it .NET either.

Ah, I don't think it was mentioned in the MSDN documentation. :-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top