我在允许用户将图像上传到我的应用程序时遇到了难题.我的主机允许无限的存储空间,但仅允许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 帖子中.
更多推荐
在数据库中存储大量图像是愚蠢的吗?
发布评论