on 09-26-2023 11:24 AM
Hi,
I'm working with CAP CDS and media data (as described in https://cap.cloud.sap/docs/guides/media-data#updating-media-resources)
Now, I would like to add some sample images to my sample CSV files.
Is this possible? and if yes, how?
(I tried adding base64 string in the field which contains the binary data)
Thanks, Abbos
Hi Abbos,
It's possible, you just need to convert the images to base 64.
I wrote a little demo program to demonstrate how to convert a directory of images into a csv file that can loaded via CAP here
The full library including working CAP service is here
katansapdevelop/cap-media-demo: CAP Media Demo (github.com)
Cheers,
Katan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.