Page 1 of 1

Base64 BLOB

Posted: Thu Jan 19, 2023 1:39 pm
by Evil1
Hi all,

I need some help with understanding how to decode a BLOB in Base64


I have a Base64 encoded BLOB

Snippet :-

Code: Select all

eJztnV1sHFcVgMdpaBw7SdP8uM5PaRNC09LG/7Fdhza1vT9ZGseO7TgoLWxnZ6/tIbMzy8ys441omwaJh1AgRUBLVcEL4gV4ACGaKE4bgmoXWgQSUkX7UAEPSPwpal8oPyXcOzN3dmbnzuzEu2vF63OlTezdc889c+85537nenZ3M8dxYzqvo1EkKGoaqQOSktK4DfjpflXl8yOqkkWqnue2
What steps are needed to decode this back into human readable format, does this need to be Base64 decoded to binary and then converted to ASCII. I'm just not undetstanding the whole Base64 BLOB thing.

Re: Base64 BLOB

Posted: Thu Jan 19, 2023 2:41 pm
by Marc56us
Evil1 wrote: Thu Jan 19, 2023 1:39 pm Hi all,
I need some help with understanding how to decode a BLOB in Base64
I have a Base64 encoded BLOB
Snippet :-

Code: Select all

eJztnV1sHFcVgMdpaBw7SdP8uM5PaRNC09LG/7Fdhza1vT9ZGseO7TgoLWxnZ6/tIbMzy8ys441omwaJh1AgRUBLVcEL4gV4ACGaKE4bgmoXWgQSUkX7UAEPSPwpal8oPyXcOzN3dmbnzuzEu2vF63OlTezdc889c+85537nenZ3M8dxYzqvo1EkKGoaqQOSktK4DfjpflXl8yOqkkWqnue2
What steps are needed to decode this back into human readable format, does this need to be Base64 decoded to binary and then converted to ASCII. I'm just not undetstanding the whole Base64 BLOB thing.
A blob is often used to store binary data in a database.
The base64 encoding is used to convert binary data into "standard" text for transfer by means that can only use text.
So here we need:
- decode the base 64 (to binary)
- Open the binary with the right tool (ie: irfanview ?)
But if the image is not whole, it may not be opened at all (depending on the format). It depends if there is the header or not (and the 'magic number')

Re: Base64 BLOB

Posted: Thu Jan 19, 2023 4:45 pm
by Evil1
Thanks Marcus,

I figured it out, in this case the decoded Base64 was compressed with Zlib