CAObject::PictureToStream

Revision as of 07:09, 24 October 2015 by Jhuawen (talk | contribs) (Created page with "触发ADE检索CAObject对象的图片(如果有),并将它传递给由«stream»说明的流,格式由«mimeType»指定。")

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool PictureToStream(stream,mimeType)

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

Parameters

«stream»: An 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.