T
T
Teraxis2013-11-09 17:13:44
MySQL
Teraxis, 2013-11-09 17:13:44

What is the best way to store avatars: base64 or files?

It is necessary to create a catalog of companies with the ability to upload a logo (avatars). Images will not be very large, about 10Kb. What is the best way to store images: as files or base64? What will consume less server resources?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Plotnikov, 2013-11-09
@Teraxis

Here is the extended answer.
In short: 1 - RAM consumption. 2 - a large number of requests. 3 - base increase.

Z
Zoldberg Zoldberg, 2013-11-09
@shus

Store in files. It takes less space than base64 and will be cached by the browser after the first download. And base64 will need to be constantly pulled from the base

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question