VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageCollectionJS type / getAsBase64String Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
getAsBase64String Method
In This Topic
Saves images from this image collection to an image file and returns file data as a Base64 string.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageCollectionJS(twainDeviceManager);

var value; // Type: string

// Parameters
var fileName; // Type: string
var imageIds; // Type: string[]

value = instance.getAsBase64String(fileName, imageIds);

Parameters

fileName
A name of image file, which should be created.
imageIds
An array of strings, which define identifiers of images.

Return Value

A Base64 string.
Exceptions
ExceptionDescription
Thrown if imageIds is not an array of strings OR images are not retrieved.
Remarks

This function sends a synchronous request to save images from this image collection to an image file. If you want to use asynchronous request instead of synchronous request, please use WebAcquiredImageCollectionJS.getAsBase64StringAsync function.

Browser Compatibility
9
See Also