create Media
See createMedia(EntityValue, StreamBase, HttpHeaders?, RequestOptions?).
Parameters
entity
Entity parameter.
content
Content parameter.
See createMedia(EntityValue, StreamBase, HttpHeaders?, RequestOptions?).
Parameters
entity
Entity parameter.
content
Content parameter.
headers
Headers parameter.
open fun createMedia(entity: EntityValue, content: StreamBase, headers: HttpHeaders?, options: RequestOptions?)
Add a pending created media entity to the change set. The entity will be created when this change set is submitted.
Parameters
entity
Entity to be created.
content
Initial content. Must be a {@link com.sap.cloud.mobile.kotlin.odata.ByteStream} or {@link com.sap.cloud.mobile.kotlin.odata.CharStream}. Will be closed before this function returns.
headers
(nullable) Optional request-specific headers.
options
(nullable) Optional request-specific options.