This page contains changes which are not marked for translation.

ADE User Guide > ADE Server Class Reference > CAPicture

bool ToStream(stream, mimeType)


Writes the in-memory image to a stream in the specified «mimeType» format. The stream is a Windows IStream object.

Note: Note: An IStream is not interchangeable with a .NET System.Io.Stream object (including a Response.OutputStream object in ASP.NET). A wrapper class is necessary for converting between these. TBD: The Wrapper class and more instructions should be included here.

Return value

Boolean (success)


  • stream – string
  • mimeType – string, usually one of:
    • "image/png"
    • "image/jpeg"
    • "image/bmp"
    • "image/tiff"


b = pict.ToStream( outStream, "image/jpeg")

See Also


You are not allowed to post comments.