Unlike other OData requests, you do not make media stream request through the
datajs library. Calls against the media stream can be done directly
with AJAX or set in the src of image elements (if the media is an image).
The media entity itself can be read with datajs. From the response, the stream can be
accessed from the media_src property in the metadata.
Updating the media entity itself can be done with datajs. For updating the stream,
you do a PUT against the edit_media metadata property of the media
entity. The body can be a file from a file input element or a base64 encoded string
provided the content-encoding header is set with a value of base64. Be sure to
include the etag with your update.
Creates are done directly against the media entity using a POST. The base URL to
build the create request is provided in the store property
offlineServiceRoot. The body can be a file from a file input
element or a base64 encoded string provided the content-encoding header is set with
a value of base64.