Hi paper fans!
I would like to upload paper.js projects as PNG to Amazon AWS/S3.
For this, I would like to avoid storing the PNG in the file system of the server but instead pass some image file to the S3 SDK.
What is the best format that I could obtain from paper.js to be used for the S3 SDK?
- The S3 SDK allows the following datatypes to be uploaded:
- Buffer
- Typed Array
- Blob
- String
- ReadableStream
How would I obtain that datatype (WITHOUT storing in the file system first such as by exporting to *.png and then reading it in again)?
Many thanks for any help!
Pascal