Encoded Images

[expired user #11318]'s profile image [expired user #11318] posted 6 years ago in General Permalink

Does anyone know how to retrieve an image from HeidiSQL once it has been encoded?

kalvaro's profile image kalvaro posted 6 years ago Permalink

Do you know what method or algorithm was used to encode the image?

[expired user #11318]'s profile image [expired user #11318] posted 6 years ago Permalink

I know the database field is a longblob I converted an image using base64 and then I put that data into the longblob field, and now the data doesn't look the same. I don't know if HeidiSQL or MySQL changes the data, but it isn't exactly what I entered

kalvaro's profile image kalvaro posted 6 years ago Permalink

You should run something like this:

SELECT FROM_BASE64(your_column_name)

... and then enable the Image preview feature in Grid view options. You need MySQL/5.6 or greater.

Please login to leave a reply, or register at first.