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

Show in webframe

EncodeFromFile Method






Name of a file on disk 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 in a disk file.
Syntax
public static string EncodeFromFile( 
   string fileName
)
'Declaration
 
Public Shared Function EncodeFromFile( _
   ByVal fileName As String _
) As String
'Usage
 
Dim fileName As String
Dim value As String
 
value = SvgDataUri.EncodeFromFile(fileName)
+ (nullable NSString *)encodeFromFile:(NSString *)file error:(NSError **)error
public static String encodeFromFile(String fileName)
public:
static String^ EncodeFromFile( 
   String^ fileName
) 

Parameters

fileName
Name of a file on disk 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 EncodeFromStream to create a standard data URI from a stream.

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