Does Bitmap.Save(Stream) Work?

  • Thread starter Thread starter TC
  • Start date Start date
T

TC

I would like to save bitmaps to a file stream, but I can't get the
Bitmap.Save(Stream) overload to work. If I save one bitmap to the stream, it
works okay, but if I save two or more, they all become garbled.

I saw another post where someone questioned whether there is a bug, but
there was no definitive answer. So, how about it? Does Bitmap.Save(Stream)
work the way it is supposed to?

-TC
 
Hi TC,

I don't know the problem, however do you use the flush and close between the
writing?

Cor
 
* "TC said:
I would like to save bitmaps to a file stream, but I can't get the
Bitmap.Save(Stream) overload to work. If I save one bitmap to the stream, it
works okay, but if I save two or more, they all become garbled.

Do you store them to the same stream? How do you store where the 1st
bitmap's data ends and the 2nd one's starts? It's the same as if you
store the data of two bitmap files in /one/ file. That won't work too.
I saw another post where someone questioned whether there is a bug, but
there was no definitive answer. So, how about it? Does Bitmap.Save(Stream)
work the way it is supposed to?

It works.
 
Back
Top