Difference between revisions of "CAObject::PictureToStream"
(Created page with "<< Back to CAObject = bool PictureToStream(stream,mimeType) = Causes ADE to retrieve CAObject object’s picture, if any, and send it to the stream specifie...") |
(Marked this version for translation) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[Category:ADE User Guide]] |
− | + | [[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAObject]] | |
− | = bool PictureToStream(stream,mimeType) = | + | <languages /> |
+ | <translate> | ||
+ | = 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 15: | 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--> |
− | * [[CAObject:: | + | <!--T:12--> |
+ | * [[CAObject::PictureToFile]] method | ||
+ | </translate> |
Latest revision as of 00:44, 16 June 2015
ADE User Guide > ADE Server Class Reference > CAObject
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
- CAObject::PictureToFile method
Comments
Enable comment auto-refresher