Answer the question
In order to leave comments, you need to log in
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
Here is the extended answer.
In short: 1 - RAM consumption. 2 - a large number of requests. 3 - base increase.
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 questionAsk a Question
731 491 924 answers to any question