WebImage.GetBytes Method
Returns the image as a byte array.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Function GetBytes ( _
requestedFormat As String _
) As Byte()
'Usage
Dim instance As WebImage
Dim requestedFormat As String
Dim returnValue As Byte()
returnValue = instance.GetBytes(requestedFormat)
public byte[] GetBytes(
string requestedFormat
)
public:
array<unsigned char>^ GetBytes(
String^ requestedFormat
)
member GetBytes :
requestedFormat:string -> byte[]
public function GetBytes(
requestedFormat : String
) : byte[]
Parameters
- requestedFormat
Type: System.String
The ImageFormat value of the WebImage object.
Return Value
Type: System.Byte[]
The image.