Hi !

I try to create a file that contains some images (in JPEG or PNG format) and some other binary data.

To store the images, I plan to use GDI+ and the Image::Save() method. So I need an IStream object.

To store the other binary data, I plan to use the standard ofstream::write() method. So I need an ofstream object.

Are these two objects (IStream and ofstream) compatible ? And how can I find one from the other ?

Thanks for your help.