Variable CSPMimePart::Data
Description:
This buffer contains the actual data of the MIME part.
 |
Prototype
CSPBuffer Data;
Remarks:
Make sure to choose the appropriate encoding type by setting the member variable Encoding. If you are using binary data, such as image data, the recommended encoding type is CSPMimePart::ENC_BASE64.
Examples:
CSPMimePart Part; CSPBuffer ImgData; CSPFile File; CSPMime Mime; File.Open( "myimage.jpeg" ); File.Read( ImgData );
Part.ContentType = "image/jpeg"; Part.Data = ImgData; Part.Encoding = CSPMimePart::ENC_BASE64;
Mime.Add( Part ); Mime.Render();
See also:
member variables ContentType, Encoding, Disposition, ContentId
|
|