Download a single file

HTTP REQUEST

GET | POST

URL

https://cloud.dynamsoft.com/rest/ocr/v1.1/file

Request Parameters

Parameters Type If Mandatory Description
method string Yes Fixed value: download
x-api-key string Yes DDC API Key. When making any API request, pass your key as the value of an x-api-key parameter in the Header.
file_name string Yes The filename of the output file
range No The Download API supports the "range" request defined in HTTP protocol. This parameter can be used in pause-and-resume downloads. The parameter can only be passed through Header.

Example:
"Range: bytes=0-99" returns the first 100 bytes of the returned file.

Response Parameters
No
Sample Code
Request Body:

x-api-key: z81QwIA3kg0tUXkueP+QN4qXFCP0MIQIqDn94uxoVPdcnnGArr366w==
GET https://cloud.dynamsoft.com/rest/ocr/v1.1/file?method=download&file_name=F01_o.pdf

Response:
File content

Is this page helpful?

Leave a Reply

Your email address will not be published.