Images in the database or in the project folder as resources

I am creating an application in which I will have a database that users cannot edit. It just has data, and it shows the user. I found that I do not need to use localstorage. I can just add the database to the project, and this is read-only. So I did it, and everything is in order. Now I want to add images to my application, and I'm not sure which is better. I can add each image to a folder, the path to the database repository for the image, and it is very simple, and now it can be done. Or, I found that I can store an image in a database as an image (byte []). What's better? Will there be fewer images in the database? Will loading images be faster? If the images in the database are the best solution,can i easily add images to an existing database? Is there any article to do this in winforms? Thanks

Edit: I'm glad there are so many answers and opinions in my question. I want to explain more of my needs. My application should have about 150 shots, and the image should be 150 pixels and 100 pixels in size. I want the application to work without an internet connection. It can connect to updates, but that’s all. Thanks again for all opinions :)

+5
source share
6 answers

There are many ifs, buts, and maybes about where you put it, you put your images in, and I don’t think there is a right or wrong way.

: , , . .., , "", . , - , - .., , .

. .

+1

, . SQL FILESTREAM, . , " sql" . , .

+3

, .

[]

+1

, , .

, -.

. , , .

, , -.

, , , , .

+1

-. , Amazon S3, .

0
source

It is best to store your images in a web folder, if you save them to the database, you will spend time restoring them from the database, because it takes more time

0
source

All Articles