在数据库或系统中的文件存储的图像? [英] store image in database or in a system file?

查看:164
本文介绍了在数据库或系统中的文件存储的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

精确复制: 用户图片:数据库或文件系统存储?
精确复制:
存储在数据库中的图像:是啊或反对票?
精确复制:我应该保存我的图片在数据库或文件夹
精确复制: <一个href="http://stackoverflow.com/questions/662488/would-you-store-binary-data-in-database-or-in-file-system">Would您存储在数据库或文件夹中的二进制数据?
精确复制: <一个href="http://stackoverflow.com/questions/561447/store-pictures-as-files-or-in-the-database-for-a-web-app">Store图片为文件或或数据库的Web应用程序?
精确复制: 存储少量图片:?BLOB或FS

Exact Duplicate: User Images: Database or filesystem storage?
Exact Duplicate: Storing images in database: Yea or nay?
Exact Duplicate: Should I store my images in the database or folders?

Exact Duplicate: Would you store binary data in database or folders?
Exact Duplicate: Store pictures as files or or the database for a web app?
Exact Duplicate: Storing a small number of images: blob or fs?

我要存储用户的个人资料图片(100像素* 100像素)什么是存储的最佳方法是什么?数据库或系统文件?哪一个更好,更快,更安全......?

I have to store user's profile image (100px * 100px) what is the best way to store it ? database or system file ? which one is better , faster ,safer ... ?

推荐答案

总是存储图像,音乐文件等在磁盘上的系统文件,然后将该URL保存:s到他们的数据库。这将使

Always store images, music files etc in system files on disk, and then store the url:s to them in the database. That will make it

1)快

2)容易配置安全设置

2) easier to configure security settings

3)在任何方面,我能想象更好

3) better in any ways I can imagine

这篇关于在数据库或系统中的文件存储的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆