VintaSoft Imaging .NET SDK v8.5
uploadBase64Images Method
Vintasoft.Imaging Namespace > VintasoftFileAPI type : uploadBase64Images Method
An array of images, which are represented by Base64 strings.
A name of file in which uploaded images 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: Error message.
    • blocked: 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.
Sends an asynchronous request to a server for uploading the images, which are represented by a Base64 strings, to a server.
Syntax
var value; // Type: any

// Parameters
var imagesAsBase64; // Type:  object
var fileName; // Type:  string
var successFunc; // Type:  object
var errorFunc; // Type:  object
var service; // Type:  object

value = Vintasoft.Imaging.VintasoftFileAPI.uploadBase64Images(imagesAsBase64, fileName, successFunc, errorFunc, service);
function uploadBase64Images( 
   imagesAsBase64 : object,
   fileName : string,
   successFunc : object,
   errorFunc : object,
   service : object
) : any;

Parameters

imagesAsBase64
An array of images, which are represented by Base64 strings.
fileName
A name of file in which uploaded images 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:
  • imageInfos: Array with information about images (file data, page index and file data type for each image).
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: Error message.
    • blocked: 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
11
5
See Also

Reference

VintasoftFileAPI type