Error processing SSI file
LEADTOOLS Svg (Leadtools.Svg assembly)

Show in webframe

EncodeFromStream Method






Stream containing an image file. Supported image formats are PNG, GIF and JPEG. All other image formats will result in an error.
Creates a standard data URI from an image file in a stream.
Syntax
public static string EncodeFromStream( 
   Stream stream
)
'Declaration
 
Public Shared Function EncodeFromStream( _
   ByVal stream As Stream _
) As String
'Usage
 
Dim stream As Stream
Dim value As String
 
value = SvgDataUri.EncodeFromStream(stream)
+ (nullable NSString *)encodeFromData:(NSData *)data error:(NSError **)error
public static String encodeFromStream(InputStream stream)
public:
static String^ EncodeFromStream( 
   Stream^ stream
) 

Parameters

stream
Stream containing an image file. Supported image formats are PNG, GIF and JPEG. All other image formats will result in an error.

Return Value

A data URI string containing the media type, encoding and image data encoded as base 64.
Remarks

Refer to Parse for more information about data URIs.

Use EncodeFromFile to create a standard data URI from a file.

Example

For an example, refer to SvgDocument.EnumerateElements

Requirements

Target Platforms

See Also

Reference

SvgDataUri Class
SvgDataUri Members

Error processing SSI file
  Leadtools.Svg requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features