The leading provider of version control solutions and TWAIN SDKs
  • Contact us









LoadImageFromBase64Binary Method

Description

Loads image from a base64 byte array with the specified file format.

ActiveX Edition Plug-in Edition Mac Edition
Since V6.2 Since V6.2 Since V6.4

Syntax

ObjectName.LoadImageFromBase64Binary(string ImageData, long ImageType)

Parameters

string ImageData: specifies the base64 string data.

long ImageType: specifies the file format.

Return value

True indicates success. False indicates failure.

Remarks

Dynamic Webcam supports the following types of image files:

Allowed Values ImageType
0 BMP
1 JPEG
2 TIFF
3 PNG
4 PDF

The loaded image will be displayed in the Dynamic Webcam.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

See also

LoadImage method, LoadImageEx method, LoadImageFromBytes method, SaveSelectedImagesToBase64Binary method
 

Sample

Javascript Sample:

	 
    var imagedata;
    Webcam.SelectedImagesCount = 2;
    Webcam.SelectedImageIndex[0] = 4;// Set the 5th image as the first selected image.
    Webcam.SelectedImageIndex[1] = 3;// Set the 4th image as the second selected image.

    Webcam.GetSelectedImagesSize(1); //jpeg
    imagedata = Webcam.SaveSelectedImagesToBase64Binary();
    Webcam.LoadImageFromBase64Binary(imagedata,1);
    alert(Webcam.ErrorString);