Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

SaveSelectedImagesToBase64Binary Method

Description

Saves the selected images in buffer to base64 string.

Syntax

Uint32 ObjectName. SaveSelectedImagesToBase64Binary()

Remarks

The method should be called after GetSelectedImageSize method.

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

SaveAsTIFF(), SaveAsJPEG(), SaveAsBMP(), SaveAsPNG(), FTPUpload(), FTPDownload(), HTTPUploadThroughPut(), HTTPUploadThroughPost(), HTTPDownload(), AllowMultiSelect, SaveSelectedImagesToBytes, LoadImageFromBase64Binary

Sample

Javascript Sample:

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

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

 

 

 













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.