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);
function getAsBase64String(
: string,
: string[]
) : string;
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
Exception | Description |
| 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
See Also