Google Answers Logo
View Question
 
Q: convert email MIME ASCII text to intended file? ( No Answer,   1 Comment )
Question  
Subject: convert email MIME ASCII text to intended file?
Category: Computers > Software
Asked by: rnd13-ga
List Price: $10.00
Posted: 23 Oct 2006 20:26 PDT
Expires: 25 Oct 2006 02:01 PDT
Question ID: 776260
Hi there --

I received an email with a file included, but which (due to some
unintended reformatting) came thru simply as plain ASCII text in the
body of the email.  I'd like to paste this into a text document, then
run a utility to convert it to the intended file.

How can I do this?  (I have WinZip and StuffIt, if that helps.)

Thanks!

[beginning of text in question follows]

~~~

Content-Type: application/x-zip-compressed;
       name="filename.zip"
Content-Transfer-Encoding: base64
Content-Description: filename.zip
Content-Disposition: attachment;
       filename="filename.zip"

UEsDBAoAAAAAAFxwVzUAAAAAAAAAAAAAAAATAAAARUY1NTA5NkYvTWFjaW50b3NoL1BLAwQKAAAA
AACFcB81AAAAAAAAAAAAAAAAJQAAAEVGNTUwOTZGL01hY2ludG9zaC9Eb25nbGVVcGRhdGVyLmFw

[... etc. ...]

~~~

Request for Question Clarification by sublime1-ga on 23 Oct 2006 21:59 PDT
rnd13...

The file attachment is purportedly a zip file, but if this were
the case, and the file had somehow been converted to text, it
would begin with the header of a zip file, which is PK.

What you have there is either not a zip file, but another type
of file renamed as a zip file (in which case it could be a virus),
or it is a corrupted file (if it originally WAS a zip file, it
cannot be restored).

Let me know where this takes you...

sublime1-ga

Clarification of Question by rnd13-ga on 24 Oct 2006 01:22 PDT
Found it:

http://en.wikipedia.org/wiki/Base64#External_links
http://4mhz.de/b64dec.html  (et al)

Thanks.
Answer  
There is no answer at this time.

Comments  
Subject: Re: convert email MIME ASCII text to intended file?
From: rond13-ga on 24 Oct 2006 00:13 PDT
 
Good point.  But it depends on how "somehow" it were converted to
text.  If it were in the usual base-256 (i.e., double-byte
hexadecimal), that would be the case.

However, this uses a variation on base-64; in which case, the
characters don't translate to text the same way as they otherwise
would.

Thanks, though.  

[For what it's worth, according to Wotsit.org, the header of a Zip
file starts as follows:
   central file header signature   4 bytes  (0x02014b50) ]


Anyone with any ideas on how to convert the text in question back to a binary file?

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy