Get media by range from opened document
note
[Since 2019.03]
Get unpacked media from DU by Range header. Media ID is parsed by Core from DOM XML media references."
POST /api/v1/documents/{docId}/media/{mediaId:.+}/stream
- Path parameters
| Parameter | Description |
|---|---|
docId | The ID of the file. |
mediaId | The ID of the media file. |
- Request headers
| Header | Description |
|---|---|
Range | Range for bytes which will return in response |
- Example request
curl 'http://localhost:9094/api/v1/documents/O3221hl9JyMhcYfuOwS/media/test.png/stream' -H 'X-co-auth-token: 8705adfeb88111b472e089a6af6aa929' -H 'Range: bytes=0-'
- Example response
HTTP/1.1 206 OK
Content-Length: 24977
Content-Range: bytes 0-24976/24977
Content-Type: image/png
[ some example content ]