Store (small) images in FaunaDB

Hi all,

According to FaunaDB documentation:

But I would like to store some small images (less than 1 MB), which the users can upload to my website. Can I do this by using Base64 encoding? Is this advisable? If not, is there a workaround?

This is not how a database works / is meant to work. You could technically store images with Fauna, but that wouldn’t be very efficient.

If you want to store data such as images, you should use object storage. Amazon S3 is the most popular option, but can also look at competitors like Backblaze which offers the same service for 1/4 of the cost. But for both options, you should be good with the free tier!

Have a good day!

1 Like

Ok noted. Thanks for your reply.