Hi Guys!

I am reading bytes from an inputs stream and displaying them as pics on a canvas. Now I would like to implement a rewind function to be able to "jump" to some definite position "back" in my inputstream..
The first solution I could thing of is to buffer the old bytes in some byte array but I am afraid I could get a memory problem especially when I am almost at the end of the stream.
The second solution is to reset the stream and the skip so many positions as needed forward to jump to the marked place. That would be - I suppose - very slow.

Do u have any good advice??

Thx
Nina