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

Created Unassigned: Exception while download attachement, base64 [2809]

$
0
0
Hi together,

i try to download attachment:

```
mx.Attachments(countAtt).Download()
If (mx.Attachments(countAtt).Downloaded) Then
mx.Attachments(countAtt).Save(directory & "uncompressed/", filename & extension)
```

i get following exception while download attachement:


-->

> System.FormatException: Die Eingabe ist keine gültige Base-64-Zeichenfolge, da sie ein Nicht-Base-64-Zeichen, mehr als zwei Leerstellen oder in den Leerstellen ein Zeichen enthält, das ungültig ist.
bei System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
bei System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
bei System.Convert.FromBase64CharArray(Char[] inArray, Int32 offset, Int32 length)
bei System.Security.Cryptography.FromBase64Transform.TransformBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[] outputBuffer, Int32 outputOffset)
bei ImapX.EncodingHelpers.Base64.FromBase64(String s) in c:\Users\Pavel\Projects\ImapX\ImapX\EncodingHelpers\Base64.cs:Zeile 107.
bei ImapX.Attachment.get_FileData() in c:\Users\Pavel\Projects\ImapX\ImapX\Attachment.cs:Zeile 47.
bei ImapX.Attachment.Save(String folder, String fileName) in c:\Users\Pavel\Projects\ImapX\ImapX\Attachment.cs:Zeile 136.
bei imapx_client.Form1.Button1_Click(Object sender, EventArgs e) in C:\Users\Administrator\Desktop\imapx-vll2\imapx-client\Form1.vb:Zeile 964.

-->

No base64 chars while downloading.
By the way: Getting the filename and the content type works, getting the file stream fails.

I updated the packages with latest nuget package but issue is same.

Any suggestions?

Thanks
Boris

Viewing all articles
Browse latest Browse all 1952

Trending Articles



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