ESRI.ArcGIS.ADF.Web
ReadBinaryResource Method
See Also 
ESRI.ArcGIS.ADF.Web Namespace > ADFResourceHandler Class : ReadBinaryResource Method




sIn
The stream from which to read the image
byBuffer
An out parameter to receive the resource bytes
nLen
An out parameter to receive the resource length
Read a binary resource such as an image in from the stream. Since we can't get its size, read it in a block at a time until we reach the end of the stream.

Syntax

Visual Basic (Declaration) 
Public Sub ReadBinaryResource( _
   ByVal sIn As Stream, _
   ByRef byBuffer As Byte, _
   ByRef nLen As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ADFResourceHandler
Dim sIn As Stream
Dim byBuffer As Byte
Dim nLen As Integer
 
instance.ReadBinaryResource(sIn, byBuffer, nLen)
C# 
public void ReadBinaryResource( 
   Stream sIn,
   out byte byBuffer,
   out int nLen
)

Parameters

sIn
The stream from which to read the image
byBuffer
An out parameter to receive the resource bytes
nLen
An out parameter to receive the resource length

See Also

© 2010 All Rights Reserved.