FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » Content-Transfer-Encoding: base64

   
Author Topic: Content-Transfer-Encoding: base64
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
I got an e-mail from a cousin, who said he was attaching a document. There's no attachment, but inline, there's this:
code:
--_f6da019b-408a-482c-bb9d-236f91292a8b_
Content-Type: application/pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="2009_10_29_12_08_06.pdf"

JVBERi0xLjMNJeLjz9MNCjEgMCBvYmo8PC9NZXRhZGF0YSAxMSAwIFIvUGFnZXMgMiAwIFIvVHlw
ZS9DYXRhbG9nPj4NZW5kb2JqDTIgMCBvYmo8PC9NZWRpYUJveFswLjAgMC4wIDg0MC4wIDU5Ny4x
Ml0vQ291bnQgMi9UeXBlL1BhZ2VzL0tpZHNbNCAwIFIgOCAwIFJdPj4NZW5kb2JqDTQgMCBvYmo8

And it goes on for a while. It looks like it's UUEncoded, but I tried UUDecoding it, and got nothing but garbage.

He's e-mailing from Hotmail (no, I have no idea why anyone would still be using Hotmail), which might have something to do with it.

Any ideas?

Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
Oops, never mind:Known bug.
Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Somewhere along the line there was an error made in formatting the email correctly (emails are just big blocks of text, with special formatting; attachments are separated out specially at various stages).

The encoding is related to uuencoding, but it isn't quite the same. Use any programming language's base64 decoding library to convert the text back into the PDF document (which will look like gibberish text, but you can paste into a text document, save, and open in a PDF viewer).

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
Thanks, fugu. That was a huge help.
Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2