get_result_photo
The get_result_photo function is used to get a photo from a report.
svc=report/get_result_photo¶ms={"attachmentIndex":<uint>, // or [<uint>] to get many zipped images at once
"border":<uint>,
"type":<ubyte>}
Parameters
Name | Description |
---|---|
attachmentIndex | Attachment index. |
border | Maximum photo size (0 — original size). For Wialon Hosting and Wialon Local 2204 the maximum value is 1920. |
type | Image type:
The parameter is only used in Wialon Hosting and Wialon Local 2204. |
Returned result
The returned result for Wialon Local versions up to 1804 is a PNG image. For versions 1904-2104 the returned result is a JPEG image.
For Wialon Hosting and Wialon Local 2204, the returned result is a JPEG image if there is one value in the attachmentIndex parameter. If there is more than one value, the returned result is a ZIP archive with images.