S
S
Saharman2018-04-17 13:49:03
ASP.NET
Saharman, 2018-04-17 13:49:03

What is the best way to work with images?

Suppose the user can upload an image to the server. How to work with them most efficiently (save to the database, compress, etc.)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin, 2018-04-17
@whiteworking

Well you convert in a bit format and you save in a DB. Not to be stored entirely

R
Roman Mirilaczvili, 2018-04-17
@2ord

Images can be saved as they were loaded, or some processing (reducing resolution, quality, etc.) can be done asynchronously.
Images can be placed in some local storage available for serving by your web server (Nginx, lighttpd, Apache httpd), or uploaded to a remote server (Amazon S3) with subsequent access via CDN (Amazon CloudFront).
The application must "know" (i.e. store in the database) which path to save and store the URL for which images will be available from the outside.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question