Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Base64 Encoding Attachments??

Status
Not open for further replies.

jennuhw

MIS
Apr 18, 2001
426
US
We have a AIX system that can generate PDF files and send them to customers. Some customers can view the files just fine others get the error: "There was an error opening this document. File does not begin with '%PDF-'." Now, the users can open other Adobe files with no problem that the system has generated.

When I open the file in Notepad this is the first few lines:
1036960_P.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="PO 1036960_P.pdf"

JVBERi0xLjENCjEgMCBvYmogPDwgL1Byb2R1Y2VyIChQY2wycGRmIC0gTGFzZXJKZXQgUENM
This is followed by many, many lines of garble. Anyone seen this before? Any clues on how to fix it?
Thanks in advance!
 
As far as I know, Acrobat files always start with %PDF, maybe the file got corrupted after it was sent to some recipients, but before it was sent to others?.
 
For some reason, some people always get the file corrupted. I think that it is being encoded into base64 or MIME somewhere along the line, but not decoded on their end. Is it possible to block all documents that have been encoded a certain way? BTW-they all have a working version of Reader, and are running Notes or Outlook for email clients (about 50/50.) Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top