| Subject: | pdf attachment gets corrupted when sent from mail client to our mail server |
Some clients don't encode properly - though they mostly seem fixed these days, we hear less and less about PDF corrupted in email. Nevertheless, PDF needs more encoding than quoted-printable, it is binary and needs to be treated with the same care as a JPEG, say.
I'd recommend first checking if there is any binary data in the input. If so, the client is broken. If it is only quoted printable, too, this is probably broken.
Otherwise, consider doing a byte for byte comparison between the encoded input stream and output stream. Analyse the corruption, try to understand what byte values are damaged and why.
| Posted: 11 Apr 2011 02:51 AM |
|