A simple demo project to demonstrate how to incorporate media in a CAP App
This was copied and modified from the CAP Cloud Samples
- Open a new terminal and run
cds watch
- Test Data CSV has already been created in
test\data\sap.capire.media-Media.csv
Requires REST Client for VS Code humao.rest-client
- Open a terminal and run
npm run csv-gen
- This script will read the contents of the
test
directory looking for.png
image files - It will then replace the contents of
test\data\sap.capire.media-Media.csv
with details of the files loaded from thetest
directory including the base 64 encoded content
Note will not run unless you run npm install
in the csv-generator
directory