Difference between revisions of "CAObject::PictureToStream"

(Marked this version for translation)
 
Line 3: Line 3:
 
<languages />
 
<languages />
 
<translate>
 
<translate>
= bool PictureToStream(stream,mimeType) =
+
= bool PictureToStream(stream,mimeType) = <!--T:1-->
  
 +
<!--T:2-->
 
Causes ADE to retrieve [[CAObject]] object’s picture, if any, and send it to the stream specified by «stream», in the format specified by «mimeType».
 
Causes ADE to retrieve [[CAObject]] object’s picture, if any, and send it to the stream specified by «stream», in the format specified by «mimeType».
  
== Parameters ==
+
== Parameters == <!--T:3-->
  
 +
<!--T:4-->
 
«stream»: An [https://msdn.microsoft.com/en-us/library/windows/desktop/aa380034%28v=vs.85%29.aspx IStream]
 
«stream»: An [https://msdn.microsoft.com/en-us/library/windows/desktop/aa380034%28v=vs.85%29.aspx IStream]
  
 +
<!--T:5-->
 
«mimeType»: string. Usually one of:  
 
«mimeType»: string. Usually one of:  
 
* <code>"image/jpeg"</code>
 
* <code>"image/jpeg"</code>
Line 17: Line 20:
 
* <code>"image/png"</code>
 
* <code>"image/png"</code>
  
== Return value ==
+
== Return value == <!--T:6-->
  
 +
<!--T:7-->
 
Boolean. '''True''' on success.
 
Boolean. '''True''' on success.
  
= Usage =
+
= Usage = <!--T:8-->
  
==  VB + ASP ==  
+
==  VB + ASP == <!--T:9-->
  
  dim outStream as MyStreamWrapper = new MyStreamWrapper(Response.OutputStream)
+
  <!--T:10-->
 +
dim outStream as MyStreamWrapper = new MyStreamWrapper(Response.OutputStream)
 
  bSuccess = obj.PictureToStream( outStream,"image/jpeg")
 
  bSuccess = obj.PictureToStream( outStream,"image/jpeg")
  
= See Also =
+
= See Also = <!--T:11-->
  
 +
<!--T:12-->
 
* [[CAObject::PictureToFile]] method
 
* [[CAObject::PictureToFile]] method
 
</translate>
 
</translate>

Latest revision as of 00:44, 16 June 2015

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool PictureToStream(stream,mimeType)

Causes ADE to retrieve CAObject object’s picture, if any, and send it to the stream specified by «stream», in the format specified by «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.