CAObject::PictureToStream

This page is a translated version of the page CAObject::PictureToStream and the translation is 100% complete.

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"

返回值

Boolean(布尔值):成功的话为True

用法

VB + ASP

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

另请参考

Comments


You are not allowed to post comments.