CAObject::PictureToStream

Revision as of 07:09, 24 October 2015 by Jhuawen (talk | contribs) (Created page with "«stream»:一个[https://msdn.microsoft.com/en-us/library/windows/desktop/aa380034%28v=vs.85%29.aspx IStream]")

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool PictureToStream(stream,mimeType)

触发ADE检索CAObject对象的图片(如果有),并将它传递给由«stream»说明的流,格式由«mimeType»指定。

参 数

«stream»:一个IStream

«mimeType»: string. Usually one of:

  • "image/jpeg"
  • "image/bmp"
  • "image/tiff"
  • "image/png"

Return value

Boolean. True on success.

Usage

VB + ASP

dim outStream as MyStreamWrapper = new MyStreamWrapper(Response.OutputStream)
bSuccess = obj.PictureToStream( outStream,"image/jpeg")

See Also

Comments


You are not allowed to post comments.