R
R
Robet Key2015-12-25 01:59:01
MySQL
Robet Key, 2015-12-25 01:59:01

The optimal solution for saving a photo?

Imagine that there is a large social network where users save their photos.
What solutions or algorithms will be optimal for the task? save photos in database with base64 or in server according to standard and why?
DB: mysql

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vyacheslav Barsukov, 2015-12-25
@r-iskey

Photos should be stored as a separate file, and not inflated by the database.
You need to store the original, and make a preview and cache from the original, do not touch the original itself, because. in the future, the design may change or new functionality will appear, for which it will be necessary to generate a new image from the original.
Working with files directly is much more convenient

D
Dimonchik, 2015-12-25
@dimonchik2013

habrahabr.ru/company/io/blog/257533
and in general look at the io company blog

A
Alexander, 2015-12-25
@aspetek

The best option is S3 cloud storage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question