VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging Namespace / VintasoftFileAPI type / uploadBase64Image Method
An image, which is represented by a Base64 string.
A name of file in which uploaded image will be saved on server.
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
The data parameter has the following properties:
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage (string): Error message.
    • blocked (boolean): Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
An instance, of WebServiceJS class, which will serve the request of this function.
In This Topic
    uploadBase64Image Method
    In This Topic
    Sends an asynchronous request to a server for uploading an image, which is represented by a Base64 string, to a server.
    Syntax
    var value; // Type: any
    
    // Parameters
    var imageAsBase64; // Type:  object
    var fileName; // Type:  string
    var successFunc; // Type:  object
    var errorFunc; // Type:  object
    var service; // Type:  object
    
    value = Vintasoft.Imaging.VintasoftFileAPI.uploadBase64Image(imageAsBase64, fileName, successFunc, errorFunc, service);
    function uploadBase64Image( 
       imageAsBase64 : object,
       fileName : string,
       successFunc : object,
       errorFunc : object,
       service : object
    ) : any;

    Parameters

    imageAsBase64
    An image, which is represented by a Base64 string.
    fileName
    A name of file in which uploaded image will be saved on server.
    successFunc
    Function that will be executed if request is executed successfully.
    Here is function prototype "function __success(data)".
    The data parameter has the following properties:
    • imageInfo (object): Information about image (image ID and page index).
    errorFunc
    Function that will be executed if request is failed.
    Here is function prototype "function __error(data)".
    The data parameter can be:
    1. An object with following properties:
      • errorMessage (string): Error message.
      • blocked (boolean): Indicates that the requested action is blocked by another request.
      if exception is catched inside web service.
    2. Otherwise, jqXHR object.
    service
    An instance, of WebServiceJS class, which will serve the request of this function.
    Browser Compatibility
    9
    5
    15
    5
    See Also