cancel
Showing results for 
Search instead for 
Did you mean: 

CAP CDS binary data in CSV sample files

azboss1991_
Member

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

View Entire Topic
katan_patel
Participant

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