smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

Downloading pdf attachment from email but getting a blank pdf of same size #130

Open vishirockz opened 7 years ago

vishirockz commented 7 years ago

Hi,

Downloading pdf attachment from one of the email but getting a blank pdf of same size

see if you can relate it with

http://stackoverflow.com/questions/18229027/pdf-generated-is-blank

will give test case if needed by monday.

Luke-McRedmond commented 7 years ago

Having the same issue, Only on some pdfs when i download the file manually it works when i download the file via code get a blank pdf

after inspecting both files on the broken pdf i get ? instead of the unicode characters -> x??Y?n?8} on the working pdf i get all unicode characters in the stream section-> xÚµYÛnÛ8}

is it some encoding issue?

NiKiZe commented 7 years ago

Could you post the Headers that is shown for that file? and also the beginning of the data section Note that trying to display raw PDF data as text will always fail, you kind of need to look on it as series of bytes probably in hex.

Luke-McRedmond commented 7 years ago

Thanks for your response

Sorry forgot to replay and cannot find the file now. If it happens again i will provide it, what are you looking from in the head?

Best Regards, Luke