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.