VintaSoft Twain .NET SDK 15.1: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / getAsBase64String Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    getAsBase64String Method
    In This Topic
    Returns image as a base64-string.
    Syntax
    var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
    
    var value; // Type: string
    value = instance.getAsBase64String();
    
    
    function getAsBase64String() : string;
    

    Return Value

    A base64-string.
    Exceptions
    ExceptionDescription
    Thrown if image bitmap is not retrieved.
    Remarks

    This function sends a synchronous request to get image as a base64-string. If you want to use asynchronous request instead of synchronous request, please use WebAcquiredImageJS.getAsBase64StringAsync function.

    Browser Compatibility
    9
    See Also