Base64 BLOB

Just starting out? Need help? Post your questions and find answers here.
Evil1
User
User
Posts: 43
Joined: Fri Jul 15, 2016 8:55 pm

Base64 BLOB

Post 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.
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Base64 BLOB

Post 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')
Evil1
User
User
Posts: 43
Joined: Fri Jul 15, 2016 8:55 pm

Re: Base64 BLOB

Post by Evil1 »

Thanks Marcus,

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