Download a Resource File
Download a platform file as a binary stream by its resource path.
Endpoint Information
Section titled “Endpoint Information”- Name: Download a resource
- Description: Downloads a map, image, or other media resource.
- Method:
POST - Path:
remoteApi/result/resource - Login required: No
- Permission required: Yes
Request Parameters
Section titled “Request Parameters”| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| filePath | String | Not specified | Image path | |
| type | Integer | Yes | 1 | Resource type: 1 map, 2 result resource |
Example:
{ "filePath": "jueying_20260121164210109.png", "type": 1}Inspection-result image
Section titled “Inspection-result image”{ "filePath": "2026\\1\\23\\1_2011376072659632128_20260114175324_qfyz\\filename_1.png", "type": 2}Response
Section titled “Response”Binary stream.
Error Codes
Section titled “Error Codes”| Code | Description |
|---|---|
| 400 | Invalid parameters |
| 401 | Unauthorized |
| 403 | Access denied |
| 404 | Resource not found |
| 500 | Internal server error |