将图像存储在数据库或系统文件中

将图像存储在数据库或系统文件中

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

问题描述

完全重复:

确切重复:

确切重复:

完全重复:

确切重复:

精确复制:



我必须存储用户的个人资料图片(100px * 100px)什么是最好的存储方式?数据库或系统文件?哪个更好,更快,更安全...?

解决方案

etc在磁盘上的系统文件中,然后将url:s存储在数据库中。



2)更容易配置安全设置



3)在任何方面我都可以想象


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?

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 ... ?

解决方案

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) faster

2) easier to configure security settings

3) better in any ways I can imagine

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

08-27 20:08