A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Express Email Newsgroup » Outlook Express
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

PDFs not encoded as base64



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 8th 06, 01:49 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
oobayly
external usenet poster
 
Posts: 2
Default PDFs not encoded as base64

I'm using OE6 (6.00.2800.1123) on Win2K SP4, everything is up to date.
When I send an email with a pdf attached, it is being attached with the
headers:
Content-Type: application/pdf;
name="200411SB1043-S-0.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="200411SB1043-S-0.pdf"

When this email is received by a Hotmail recipient, the pdf is corrupt. I've
compared the original and received pdf, and certain lines of data are being
truncated. Hence the corruption.

I've checked, and as expected other binary attachments are being encoded in
base64. Admittedly, Hotmail is the only client that appears to corrupt the
file, but this encoding behaviour shouldn't be occuring. A PDF not always,
but will often contain binary data, and should be encoded in base64 to get
around this type of problem.

Many thanks
John

Ads
  #2  
Old February 8th 06, 05:29 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Michael Santovec
external usenet poster
 
Posts: 2,875
Default PDFs not encoded as base64

OE decides on Base64 or quoted-printable encoding based on the file
contents. If the beginning of the file is mostly simple text, it uses
Quoted-printable.

If you look at the PDF file in Notepad, you'll see what OE sees.

This probably typically occurs with small, simple PDF files. Larger PDF
files including those with various fonts and graphics will be sent in
Base64.

A couple of things you can do, but neither of them great:

Use Uuencode rather than MIME in the mail sending format. But this
isn't idea and isn't compatible with HTML messages.

Or Zip the PDF file before sending. That will force the Base64. But
the recipient will have to unzip it.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"oobayly" wrote in message
...
I'm using OE6 (6.00.2800.1123) on Win2K SP4, everything is up to date.
When I send an email with a pdf attached, it is being attached with
the
headers:
Content-Type: application/pdf;
name="200411SB1043-S-0.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="200411SB1043-S-0.pdf"

When this email is received by a Hotmail recipient, the pdf is
corrupt. I've
compared the original and received pdf, and certain lines of data are
being
truncated. Hence the corruption.

I've checked, and as expected other binary attachments are being
encoded in
base64. Admittedly, Hotmail is the only client that appears to corrupt
the
file, but this encoding behaviour shouldn't be occuring. A PDF not
always,
but will often contain binary data, and should be encoded in base64 to
get
around this type of problem.

Many thanks
John



  #3  
Old February 9th 06, 11:36 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
oobayly
external usenet poster
 
Posts: 2
Default PDFs not encoded as base64

Michael,
Thanks for the response, I had kinda guessed the OE isn't looking to far
down the file, the 1st 520 odd bytes are plain ascii and then the binary data
begins. This is in a 85KB pdf, so it's a tiny percentage that is ascii (0.01%
in fact).
Out pdfs have several embedded fonts & images, so I'd have hoped that OE
could pick this up.
Regarding your solution, zipping was my 1st thought, but not a viable option
in our office. We also prefer sending mails in html, so UUencoding is not
ideal, as you said.
Maybe it's a good excuse to get Thunderbird on everyones machines.

"Michael Santovec" wrote:

OE decides on Base64 or quoted-printable encoding based on the file
contents. If the beginning of the file is mostly simple text, it uses
Quoted-printable.

If you look at the PDF file in Notepad, you'll see what OE sees.

This probably typically occurs with small, simple PDF files. Larger PDF
files including those with various fonts and graphics will be sent in
Base64.

A couple of things you can do, but neither of them great:

Use Uuencode rather than MIME in the mail sending format. But this
isn't idea and isn't compatible with HTML messages.

Or Zip the PDF file before sending. That will force the Base64. But
the recipient will have to unzip it.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"oobayly" wrote in message
...
I'm using OE6 (6.00.2800.1123) on Win2K SP4, everything is up to date.
When I send an email with a pdf attached, it is being attached with
the
headers:
Content-Type: application/pdf;
name="200411SB1043-S-0.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="200411SB1043-S-0.pdf"

When this email is received by a Hotmail recipient, the pdf is
corrupt. I've
compared the original and received pdf, and certain lines of data are
being
truncated. Hence the corruption.

I've checked, and as expected other binary attachments are being
encoded in
base64. Admittedly, Hotmail is the only client that appears to corrupt
the
file, but this encoding behaviour shouldn't be occuring. A PDF not
always,
but will often contain binary data, and should be encoded in base64 to
get
around this type of problem.

Many thanks
John




  #4  
Old February 9th 06, 07:38 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Steve Cochran
external usenet poster
 
Posts: 2,353
Default PDFs not encoded as base64

You might be able to fake out the system via changing the registry
information.

Go to

HKEY_CLASSES_ROOT\.pdf

and change the

Content type application/pdf

to

application/octet-stream

which is what is used for generic binary files.

See then how OE embeds the pdf file. If that fixes it, then make sure that
change didn't affect Acrobat or any other program that uses pdf files. I
don't think it will.

steve



"oobayly" wrote in message
...
Michael,
Thanks for the response, I had kinda guessed the OE isn't looking to far
down the file, the 1st 520 odd bytes are plain ascii and then the binary
data
begins. This is in a 85KB pdf, so it's a tiny percentage that is ascii
(0.01%
in fact).
Out pdfs have several embedded fonts & images, so I'd have hoped that OE
could pick this up.
Regarding your solution, zipping was my 1st thought, but not a viable
option
in our office. We also prefer sending mails in html, so UUencoding is not
ideal, as you said.
Maybe it's a good excuse to get Thunderbird on everyones machines.

"Michael Santovec" wrote:

OE decides on Base64 or quoted-printable encoding based on the file
contents. If the beginning of the file is mostly simple text, it uses
Quoted-printable.

If you look at the PDF file in Notepad, you'll see what OE sees.

This probably typically occurs with small, simple PDF files. Larger PDF
files including those with various fonts and graphics will be sent in
Base64.

A couple of things you can do, but neither of them great:

Use Uuencode rather than MIME in the mail sending format. But this
isn't idea and isn't compatible with HTML messages.

Or Zip the PDF file before sending. That will force the Base64. But
the recipient will have to unzip it.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"oobayly" wrote in message
...
I'm using OE6 (6.00.2800.1123) on Win2K SP4, everything is up to date.
When I send an email with a pdf attached, it is being attached with
the
headers:
Content-Type: application/pdf;
name="200411SB1043-S-0.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="200411SB1043-S-0.pdf"

When this email is received by a Hotmail recipient, the pdf is
corrupt. I've
compared the original and received pdf, and certain lines of data are
being
truncated. Hence the corruption.

I've checked, and as expected other binary attachments are being
encoded in
base64. Admittedly, Hotmail is the only client that appears to corrupt
the
file, but this encoding behaviour shouldn't be occuring. A PDF not
always,
but will often contain binary data, and should be encoded in base64 to
get
around this type of problem.

Many thanks
John





  #5  
Old February 9th 06, 09:17 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Michael Santovec
external usenet poster
 
Posts: 2,875
Default PDFs not encoded as base64

The potential problem with that is that OE inserts the content type in
the attachment MIME header. Some non-Microsoft mail programs give
priority to the content type over the file extension, so they might not
recognize the attachment as being for Acrobat but rather some generic
unknown file type.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"Steve Cochran" wrote in message
...
You might be able to fake out the system via changing the registry
information.

Go to

HKEY_CLASSES_ROOT\.pdf

and change the

Content type application/pdf

to

application/octet-stream

which is what is used for generic binary files.

See then how OE embeds the pdf file. If that fixes it, then make sure
that change didn't affect Acrobat or any other program that uses pdf
files. I don't think it will.

steve



"oobayly" wrote in message
...
Michael,
Thanks for the response, I had kinda guessed the OE isn't looking to
far
down the file, the 1st 520 odd bytes are plain ascii and then the
binary data
begins. This is in a 85KB pdf, so it's a tiny percentage that is
ascii (0.01%
in fact).
Out pdfs have several embedded fonts & images, so I'd have hoped that
OE
could pick this up.
Regarding your solution, zipping was my 1st thought, but not a viable
option
in our office. We also prefer sending mails in html, so UUencoding is
not
ideal, as you said.
Maybe it's a good excuse to get Thunderbird on everyones machines.

"Michael Santovec" wrote:

OE decides on Base64 or quoted-printable encoding based on the file
contents. If the beginning of the file is mostly simple text, it
uses
Quoted-printable.

If you look at the PDF file in Notepad, you'll see what OE sees.

This probably typically occurs with small, simple PDF files. Larger
PDF
files including those with various fonts and graphics will be sent
in
Base64.

A couple of things you can do, but neither of them great:

Use Uuencode rather than MIME in the mail sending format. But this
isn't idea and isn't compatible with HTML messages.

Or Zip the PDF file before sending. That will force the Base64.
But
the recipient will have to unzip it.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"oobayly" wrote in message
...
I'm using OE6 (6.00.2800.1123) on Win2K SP4, everything is up to
date.
When I send an email with a pdf attached, it is being attached
with
the
headers:
Content-Type: application/pdf;
name="200411SB1043-S-0.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="200411SB1043-S-0.pdf"

When this email is received by a Hotmail recipient, the pdf is
corrupt. I've
compared the original and received pdf, and certain lines of data
are
being
truncated. Hence the corruption.

I've checked, and as expected other binary attachments are being
encoded in
base64. Admittedly, Hotmail is the only client that appears to
corrupt
the
file, but this encoding behaviour shouldn't be occuring. A PDF not
always,
but will often contain binary data, and should be encoded in
base64 to
get
around this type of problem.

Many thanks
John







  #6  
Old February 10th 06, 07:14 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Steve Cochran
external usenet poster
 
Posts: 2,353
Default PDFs not encoded as base64

Yeah, but if you look under that registry key, it still defines Acrobat as
the program to open it, so it might work. I've seen image associations
messed up with that content-type and they had some problems rendering in OE,
I think , but would still open when saved and then opened with whatever
program. For a pdf, you aren't going to render that with OE.

I thought it might be a neat tricky workaround, but maybe it won't work.

steve

"Michael Santovec" wrote in message
...
The potential problem with that is that OE inserts the content type in the
attachment MIME header. Some non-Microsoft mail programs give priority to
the content type over the file extension, so they might not recognize the
attachment as being for Acrobat but rather some generic unknown file type.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"Steve Cochran" wrote in message
...
You might be able to fake out the system via changing the registry
information.

Go to

HKEY_CLASSES_ROOT\.pdf

and change the

Content type application/pdf

to

application/octet-stream

which is what is used for generic binary files.

See then how OE embeds the pdf file. If that fixes it, then make sure
that change didn't affect Acrobat or any other program that uses pdf
files. I don't think it will.

steve



"oobayly" wrote in message
...
Michael,
Thanks for the response, I had kinda guessed the OE isn't looking to far
down the file, the 1st 520 odd bytes are plain ascii and then the binary
data
begins. This is in a 85KB pdf, so it's a tiny percentage that is ascii
(0.01%
in fact).
Out pdfs have several embedded fonts & images, so I'd have hoped that OE
could pick this up.
Regarding your solution, zipping was my 1st thought, but not a viable
option
in our office. We also prefer sending mails in html, so UUencoding is
not
ideal, as you said.
Maybe it's a good excuse to get Thunderbird on everyones machines.

"Michael Santovec" wrote:

OE decides on Base64 or quoted-printable encoding based on the file
contents. If the beginning of the file is mostly simple text, it uses
Quoted-printable.

If you look at the PDF file in Notepad, you'll see what OE sees.

This probably typically occurs with small, simple PDF files. Larger
PDF
files including those with various fonts and graphics will be sent in
Base64.

A couple of things you can do, but neither of them great:

Use Uuencode rather than MIME in the mail sending format. But this
isn't idea and isn't compatible with HTML messages.

Or Zip the PDF file before sending. That will force the Base64. But
the recipient will have to unzip it.

--

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm


"oobayly" wrote in message
...
I'm using OE6 (6.00.2800.1123) on Win2K SP4, everything is up to
date.
When I send an email with a pdf attached, it is being attached with
the
headers:
Content-Type: application/pdf;
name="200411SB1043-S-0.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="200411SB1043-S-0.pdf"

When this email is received by a Hotmail recipient, the pdf is
corrupt. I've
compared the original and received pdf, and certain lines of data are
being
truncated. Hence the corruption.

I've checked, and as expected other binary attachments are being
encoded in
base64. Admittedly, Hotmail is the only client that appears to
corrupt
the
file, but this encoding behaviour shouldn't be occuring. A PDF not
always,
but will often contain binary data, and should be encoded in base64
to
get
around this type of problem.

Many thanks
John








  #7  
Old December 30th 06, 01:25 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
DataNumen
external usenet poster
 
Posts: 1
Default PDFs not encoded as base64


Hi John,

You can try our product Advanced PDF Repair. It is a powerful tool to
repair corrupt or damaged PDF documents.

Please visit http://www.datanumen.com/apdfr/index.htm for detailed
information about Advanced PDF Repair.

And you can also download a free demo version at
http://www.datanumen.com/apdfr/apdfr.exe

Alan Chen
DataNumen, Inc. - World leader in data recovery technologies
Website: http://www.datanumen.com
Fax: +1-800-9917-FAX (US Toll-Free), +852-31829286 (HONG KONG)


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.