What is the best practice about rewinding streams?

Posted by juancalero on Stack Overflow See other posts from Stack Overflow or by juancalero
Published on 2010-04-05T08:43:36Z Indexed on 2010/04/05 8:53 UTC
Read the original article Hit count: 476

Filed under:
|
|

I've done the same mistake lots of times:

I've tried to use a Stream that is positioned in the end, consequently returning nothing.

When and how is the best way to rewind the Stream (setting the Position to 0) after "loading" it?

© Stack Overflow or respective owner

Related posts about streams

Related posts about best-practices