Creates a standard data URI from an image file in a stream.
public static string EncodeFromStream(
Public Shared Function EncodeFromStream( _
ByVal stream As Stream _
) As String
+ (nullable NSString *)encodeFromData:(NSData *)data error:(NSError **)error
public static String encodeFromStream(InputStream stream)
static String^ EncodeFromStream(
Stream containing an image file. Supported image formats are PNG, GIF and JPEG. All other image formats will result in an error.
A data URI string containing the media type, encoding and image data encoded as base 64.
Refer to Parse for more information about data URIs.
Use EncodeFromFile to create a standard data URI from a file.
For an example, refer to SvgDocument.EnumerateElements