Answer the question
In order to leave comments, you need to log in
How to store photos in database?
A 16kb(jpg) photo is sent from the form. On the server, the script converts it to base64 and writes it to the database. When fetching from the database, it already weighs 250kb.
What is the reason for the increase in file size and how to get rid of it?
Answer the question
In order to leave comments, you need to log in
we create a table, one of the columns of which is of a binary type, and write it there directly through the insert file.
In general, in the search it can be found on the first page
janicky.com/stati/sohranenie-izobrazhenij-v-baze-d...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question