VintaSoft Imaging .NET SDK v8.5
uploadBase64Image Method
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: 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 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: Information about image (file data, page index and file data type).
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