将base64图像上传到supabase
我的网站希望减少用户可以使用图像所做的事情...因此,为了增加安全性,我们希望将图像源保留为Base64字符串,而不是Supabase存储URL。这是否可以通过Supabase存储,我是否必须将字符串保存在DB中?
My website wants to reduce the amount of things users can do with the images...so for added security, we want to keep the image sources as a base64 strings instead of a supabase storage URL. Is this possible through supabase storage, do will I have to save the string in the db?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果要将图像保存为base64,则需要将其保存为表中的记录。
使用存储,您可以创建一个复杂的策略并从存储中下载文件,并且不会直接共享链接。
If you want to save your image as base64 you need to save it as a record in your table.
With storage you can create a complex policy and download files from storage and don't share links directly.
尝试一下
try this