ESRI.ArcGIS.ADF.Web
ReadBinaryResource Method
See Also  Send Feedback
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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.