Save images (jpg, gif, png) in a file system or database?

Possible duplicates:
Which is more secure: file system or database?
Custom images - database and file system storage
to 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?

+3
12

, . , .

. :

  • . . [-X] [-Y]. (.. ).
  • (, ), , , // .
  • - , , .
  • : " ". Microsoft .
  • , ACL. -.

:

varbinary - ( ), , . , , , , unit test .

SQL Server 2008, FileStream SQL 2008.

, Flickr Facebook.

, -. !

+11

, "". , . ( , ).

, . , , .

( ), , . HTTP- , . ( ), URL- , , - - , -, .

+4

, , " - DB". .

, , ? ( , , apache DocumentRoot.)

100% - , Database - . , , , , (, ).

, - , .

, , , .

+2

FileSystem, .

, , ( JackM). , -.

, . , , ( ) ... "" .

+2

, , . , 100 . . 2gb , , , .

, , . . , . Windows , .

, , .

, - .

+2

, , -. , NoSQL.

AWS , , :

  • S3
  • S3
  • S3 (Amazon CDN).
+1

-, , , , .

- memcache , , , . , .

, - , , . .

+1

, , , , SQL- , . , .

0

, , , .

, - , .

, ( ) , . -, , - ( , ).

0

, , . - DNS, CGI, - . , .

, , , , URL-, , URL ( , cookie / javascript).

0

. ( HTTP) , . .

0

, , .

, , .

The database is good for storing pointers (file paths) to the actual data.

0
source

Source: https://habr.com/ru/post/1710736/


All Articles