How to upload a image into Content and Experience Cloud using it's REST API
Summary
I am trying to upload an image into Content and Experience Cloud using it's REST APIContent
Below is the payload which i am using to upload a text file, which works fine. Now my question is how do i upload an image file with the same payload.
Should the content of the image be encoded or what does the API accept? Any suggestions please?
Code Snippet
-----1234567890 Content-Disposition: form-data; name="jsonInputParameters" {"parentID":"F7D2E128D47B268D46726140E0DE0255F6C149D47067"} -----1234567890 Content-Disposition: form-data; name="primaryFile"; filename="example.txt" Content-Type: text/plain <FileContent>'This is Text' -----1234567890--
Tagged:
0