Answer the question
In order to leave comments, you need to log in
Extracting photos from MySQL?
Greetings.
I inherited a MySQL database with photos that are in a column with the VARBINARY type. Maybe someone will tell you how to properly convert them to base64 and then insert them into the img tag. Tried through base64_encode, but it didn't help. Perhaps some other modifications are needed?
Answer the question
In order to leave comments, you need to log in
Judging by the fact that at the beginning there is a signature FF D8 FF E0 - this is a JPEG picture. Only here is its presentation, well, very atypical, well, or, this is how the Binary Editor strangely displays data. What data is in the column in "raw" form?
All transformations are in the code that writes the photo to the database.
what's the point of your screenshot
, be it in text form, at least it was clear what kind of image format in the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question