Uploading Image URL to S3 via API without storing binary data to Xano File Storage?? - HELP PLEASE

Answered

Right now I'm trying to save an image file to S3 via it's public web URL using Xano.

S3 only allows me to upload a binary image file, which is fine. But in order to do so, I have to download the image from the URL, save it to Xano file storage, then upload the binary Xano file to S3 via API, then delete the binary file in Xano so I don't rack up a bunch of Xano storage costs. The only reason I am saving them to Xano storage is because S3 can only accept a binary image file.

Is there a way to convert my image url to binary data and save it in some kind of short term memory or cache (temporarily) while i upload it to S3, then delete it? I'm really trying to avoid downloading to a file resource in Xano because it's so time consuming, and I also have to add an extra step to delete the file resource. It's just adding a lot of extra load on my function.

3 replies