Skip to Content
0
Dec 06, 2022 at 08:57 AM

Capire Cloud Sample media not working in browser

186 Views

Dear all,

I am trying to implement a service with media handling in CAP and tried the media sample provided on GitHub:

https://github.com/SAP-samples/cloud-cap-samples/tree/main/media

The HTTP Request tests in VSCode work fine, I can upload the image and read it again.
The same also works with Postman.
But as soon as I try to open the image in a browser (tried edge, firefox and chrome), it cannot be opened (image contains errors) ...

Does anybody have an idea how to fix this? Can you run the sample in a browser?

This is my environment:

@capire/media: 1.0.0
@sap/cds: 6.3.2
@sap/cds-compiler: 3.4.4
@sap/cds-dk: 6.3.2
@sap/cds-dk (global): 6.3.2
@sap/cds-foss: 4.0.0
@sap/cds-mtx: -- missing --
@sap/eslint-plugin-cds: 2.6.0
Node.js: v18.12.1

Thank you!