Skip to main content

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
  1. Path parameters
ParameterDescription
docIdThe ID of the file.
mediaIdThe ID of the media file.
  1. Request headers
HeaderDescription
RangeRange for bytes which will return in response
  1. Example request
curl 'http://localhost:9094/api/v1/documents/O3221hl9JyMhcYfuOwS/media/test.png/stream' -H 'X-co-auth-token: 8705adfeb88111b472e089a6af6aa929' -H 'Range: bytes=0-'
  1. Example response
HTTP/1.1 206 OK
Content-Length: 24977
Content-Range: bytes 0-24976/24977
Content-Type: image/png
[ some example content ]