Click to See Complete Forum and Search --> : IStream interface serialization


vova
November 22nd, 2003, 04:32 PM
hi folks !

I need your help!

I have a problem i dont know how to do it

i need to convert IStream interface

to jpeg file


thanks in advance

vicodin451
November 22nd, 2003, 09:21 PM
Assuming the IStream simply contains the JPEG data... In a loop, just read a certain number of bytes from the stream and write to a binary file. When there are no more bytes in the stream, close the file.

galathaea
November 23rd, 2003, 05:14 PM
If you are willing to use the IPicture interface, a simple call to ::OleLoadPicture will get you the IPicture object to work with.