on 2023 Mar 11 3:47 PM
I want to develop an app using SAP BTP iOS SDK to capture images from the iOS device(iPhone & iPad) camera. I know how to setup SAP BTP SDK using Assistant and use the camera API to capture images from iOS device.
I could not find any reference or sample code on how to upload the captured image to SAP BTP content server.
I found this to add attachment to a cell here:
Any sample code or reference to document will help.
Request clarification before answering.
let byteStream = ByteStream.fromBinary(data: imageData)
byteStream.mediaType = "image/jpg"
byteStream.fileName = fileName
requestHeaders.setHeader(withName: "Slug", value: fileName)
try? service.createRelatedMedia ....
you should have a media entity type, you first create your entity, then you call createMedia or createRelatedMedia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
7 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.