Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Image attachment breaks parser

$
0
0
Hi Pavel,

as I mentioned in previous message, I was processing a lot of image attachments for software for processing puzzle hunt email and one user's images were consistently triggering this problem when iterating over attachments. If it's not obvious what the problem is, I can try to fish out the offending email and send it to you. It downloads ok, and I can get all the email metadata but once I start processing the image attachments, I get this traceback. I'm pretty sure the email was legit because other clients (e.g. gmail) could view the email perfectly,

Darren
p.s. the download raw method worked beautifully.

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64CharArray(Char[] inArray, Int32 offset, Int32 length)
at System.Security.Cryptography.FromBase64Transform.TransformBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[] outputBuffer, Int32 outputOffset)
at ImapX.EncodingHelpers.Base64.FromBase64(String s) in c:\proj\DotNet\imapx-34274\ImapX\EncodingHelpers\Base64.cs:line 105
at ImapX.Attachment.get_FileData() in c:\proj\DotNet\imapx-34274\ImapX\Attachment.cs:line 47
at Download.imapMain(String connString, Int32 N) in C:\proj\TSP\tspdownload\download.fs:line 257

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>