My goal is to use ASPOSE to convert a base64 or PNG file to a webp file.
I would like to execute the conversion in a shell (mac vsh or windows10 PowerShell).
curl is a reasonable choice for either environment.
I have a Client Id and a Client Secret.
I believe the basic curl structure looks like this:
curl -X POST “https://api.aspose.cloud/connect/token”
-H “Content-Type: application/x-www-form-urlencoded”
-H “Accept: application/json”
Here are my questions (let’s assume Win10 and POSH):
How to update the curl statement to read the source file (base64 file or file.png) on the local machine?
How to update the curl statement to write to a specific location on the local machine?
The idea location is on my local file system.
But if I have to write to ASPOSE Internal Storage (with a 24-hour retention window) that’s OK too, but not sure how to specify Internal Storage or how to access it.
Thanks for guidance and assistance here.