DcsIO

Description

A protocol that includes the functions of the image/document IO.

Members

Method Description
(void) loadData: (NSData *) data mode: DcsModeEnum mode Loads the buffer data to DcsBuffer in image or document format.
(void) loadFile: (NSString *) file mode: DcsModeEnum mode Loads images or documents to DcsBuffer.
(void) loadDataAsync: :(NSString *) file
mode: DcsModeEnum mode
successCallback: (onLoadSuccess) onSuccess
failureCallback: (onLoadFailure) onFailure
progressCallback: (onLoadProgress) onProgress
Loads images from buffer asynchronously and converts them to dcsImage or dcsDocument in DcsBuffer according to the value of mode.
(void) loadFileAsync: (NSData *)data
mode: DcsModeEnum mode
successCallback: (onLoadSuccess) onSuccess
failureCallback: (onLoadFailure) onFailure
Loads images from a file asynchronously and converts them to dcsImage or dcsDocument in DcsBuffer according to the value of mode.
(void) save: (NSArray *) indices
file: (NSString *) filename
Saves images in DcsBuffer to file system.
(void) saveAsync: (NSArray *) indices
file: (NSString *) filename
encodeParameter: (DcsEncodeParameter *) parameter
successCallback: (onSaveSuccess) onSuccess
failureCallback: (onSaveFailure) onFailure
progressCallback: (onSaveProgress) onProgress
Saves images in DcsBuffer to file system asynchronously.
(NSData *) upload: (NSArray *) indices
uploadConfig: (DcsHttpUploadConfig *) config
encodeParameter: (DcsEncodeParameter *) parameter
Uploads images synchronously. The selected image data in DcsBuffer will be encoded according to the value of encodeParameter and uploaded to the specified HTTP server.
(void) uploadAsync: (NSArray *) indices
uploadConfig: (DcsHttpUploadConfig *) config
encodeParameter: (DcsEncodeParameter *) parameter
successCallback: (onUploadSuccess) onSuccess
failureCallback: (onUploadFailure) onFailure
progressUpdateCallback: (onUploadProgress) onProgress
Uploads images asynchronously. The selected image data in DcsBuffer will be encoded according to the value of encodeParameter and uploaded to the specified HTTP server.
(void) download: (DcsHttpDownloadConfig *) config
mode: DcsModeEnum mode
Downloads images synchronously and converts them to dcsImage or dcsDocument in DcsBuffer according to the value of mode.
(void) downloadAsync: (DcsHttpDownloadConfig *) config
mode: DcsModeEnum mode
successCallback: (onDownloadSuccess) onSuccess
failureCallback: (onDownloadFailure) onFailure
progressUpdateCallback: (onDownloadProgress) onProgress
Downloads images asynchronously and converts them to dcsImage or dcsDocument in DcsBuffer according to the value of mode.
Is this page helpful?