CArchive & IStream
Status Save(
IStream* stream,
const CLSID* clsidEncoder,
const EncoderParameters* encoderParams
);
Parameters
stream
[in] Pointer to an IStream COM interface. The implementation of IStream must include the Seek, Read, Write, and Stat methods.
clsidEncoder
[in] Pointer to a CLSID that specifies the encoder to use to save the image.
encoderParams
[in] Optional. Pointer to an EncoderParameters object that holds parameters used by the encoder. The default value is NULL.
В объект класса CArchive.
Например
в классе документа Bitmap* m_pBmp;
Че писать в функции Serialize( CArchive& ar ) чтобы сохранить\загрузить картинку.