Possible duplicates:Which is more secure: file system or database?Custom images - database and file system storageto save image in database or in system file?
I cannot decide which one I must comply with. Can you guys express some opinions? Should I store my images in a file system or database? (I would like others not to steal my images)
When you answer this question, please include comparisons of safety, performance, etc.
Thanks.
Exact duplicate: User images: database or file system storage?Exact duplicate: Saving images in a database: yes or no?Exact duplicate: Should I store my images in a database or folders?Exact duplicate: Will you store binary data in a database or folders?Exact duplicate: Save images as files or or as a database for a web application?Exact duplicate: Saving a small number of images: blob or fs?Exact duplicate: save image to file system or database?
, . , .
. :
:
varbinary - ( ), , . , , , , unit test .
varbinary
SQL Server 2008, FileStream SQL 2008.
, Flickr Facebook.
, -. !
, "". , . ( , ).
, . , , .
( ), , . HTTP- , . ( ), URL- , , - - , -, .
, , " - DB". .
, , ? ( , , apache DocumentRoot.)
100% - , Database - . , , , , (, ).
, - , .
, , , .
FileSystem, .
, , ( JackM). , -.
, . , , ( ) ... "" .
, , . , 100 . . 2gb , , , .
, , . . , . Windows , .
, , .
, - .
, , -. , NoSQL.
AWS , , :
-, , , , .
- memcache , , , . , .
, - , , . .
, , , , SQL- , . , .
, ( ) , . -, , - ( , ).
, , . - DNS, CGI, - . , .
, , , , URL-, , URL ( , cookie / javascript).
. ( HTTP) , . .
The database is good for storing pointers (file paths) to the actual data.
Source: https://habr.com/ru/post/1710736/More articles:Possibilities of building logic - logicMapping a URL pattern to a single RequestHandler element in WSGIApplication - pythonWhy is there an additional new line in the Emac circuit? - emacsSafely using exec with PHP to run ffmpeg - securityconvert using ffmpeg without exec - phpHiding default.aspx from a URL - c #How can I display an array in a human-readable format? - arraysSQL - multiple rows in one column - sqlMicrosoft Sync Framework - How does bidirectional synchronization work? - synchronizationCSS Framework - off the shelf or homegrown? - htmlAll Articles