[lug] Recovering a Mime/base64 encoded file

John Karns jkarns at csd.net
Fri May 25 20:21:38 MDT 2001


On a few ocassions I have come across situations where I would like to
recover a base-64 encoded file segment, but have given up.  In the latest
case, I have a segment that begins:

--part1_62.cda3349.27e8448b_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit



--part1_62.cda3349.27e8448b_boundary
Content-Type: image/jpeg; name="pic.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="pic.jpg"

/9j/4AAQSkZJRgABAgEASABIAAD/7RGeUGhvdG9zaG9wIDMuMAA4QklNA+0AAAAAABAASAAA
AAEAAQBIAAAAAQABOEJJTQQNAAAAAAAEAAAAeDhCSU0D8wAAAAAACAAAAAAAAAAAOEJJTQQK
AAAAAAABAAA4QklNJxAAAAAAAAoAAQAAAAAAAAACOEJJTQP1AAAAAABIAC9mZgABAGxmZgAG
AAAAAAABAC9mZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAG

[snip]

... and ends thus:

VdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVd
irsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdir
sVdirsVdirsVdirsVf/Z

--part1_62.cda3349.27e8448b_boundary--


Can anyone offer suggestions on a method to decode this to a binary (in
this case) .jpg?

----------------------------------------------------------------------
John Karns                                              jkarns at csd.net





More information about the LUG mailing list