fun send(name: String, contentType: String, content: ByteArray, responder: (Response<BinariesService.Attachment>) -> Unit): Unit
Sends the file to Cumulocity to be stored
name
- label of the file to be shown in Cumulocity -> Administration
-> Management -> File Repository
contentType
- content type representing the type of data to be stored
content
- ByteArray representing rawe data to be stored
responder
- Callback function to be called with response from Cumulocity, principally
the internal id of the newly stored file