CAObject::PictureToStream

Revision as of 07:09, 24 October 2015 by Jhuawen (talk | contribs) (Created page with "«mimeType»:string(字符串)。 使用下面的代码中的一个: * <code>"image/jpeg"</code> * <code>"image/bmp"</code> * <code>"image/tiff"</code> * <code>"image...")

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool PictureToStream(stream,mimeType)

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

参 数

«stream»:一个IStream

«mimeType»:string(字符串)。 使用下面的代码中的一个:

  • "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.