在数据库中存储大量图像是愚蠢的吗?

编程入门 行业动态 更新时间:2024-10-25 08:23:30
本文介绍了在数据库中存储大量图像是愚蠢的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在允许用户将图像上传到我的应用程序时遇到了难题.我的主机允许无限的存储空间,但仅允许250k单个文件.我的年龄为125k,并且计划发布一项功能,该功能将允许用户上传图像.如果我开始上传大量图像,则可以迅速填满该配额.我考虑过将它们存储在MySQL等数据库中.这是可行的解决方案,还是只是愚蠢?如果这只是愚蠢的,那有什么免费/便宜的选择呢?

I'm having a dilemma with allowing users to upload images to my application. My host allows unlimited storage space, but only allows 250k individual files. I'm at 125k, and I'm planning on releasing a feature that will allow users to upload images. If I start getting a large amounts of images uploaded, I could quickly fill that quota up. I thought about storing them in a database such as MySQL. Is this a feasible solution, or just plain stupid? If it's just stupid, what would be some free/cheap alternatives?

推荐答案

是的,将图像数据放入db有点愚蠢.我会考虑使用类似 Amazon S3 之类的东西进行存储.

Yeah, putting the image data in a db would be kind of silly. I'd look at using something like Amazon S3 for storage.

这是几年前在Jeff讨论的CodingHorror 帖子中.

更多推荐

在数据库中存储大量图像是愚蠢的吗?

本文发布于:2023-10-24 13:34:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524085.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库中   愚蠢   图像

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!