VintaSoft Imaging .NET SDK v8.5
copyFile Method
Vintasoft.Imaging Namespace > VintasoftFileAPI type : copyFile Method
URL (on server) of file that should be downloaded.
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 copying specified file on server to the working directory of current user.
Syntax
var value; // Type: any

// Parameters
var fileUrl; // Type:  string
var successFunc; // Type:  object
var errorFunc; // Type:  object
var service; // Type:  object

value = Vintasoft.Imaging.VintasoftFileAPI.copyFile(fileUrl, successFunc, errorFunc, service);
function copyFile( 
   fileUrl : string,
   successFunc : object,
   errorFunc : object,
   service : object
) : any;

Parameters

fileUrl
URL (on server) of file that should be downloaded.
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:
  • url: URL to an image file, which is stored on server.
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