Can not down load an attachment in save Attachments Activity

Hello everyone:
I met a problem, when I want to save an attachment by using save Attachment Activity. I can not download an attachment, and output panel shows that there is an invalid character. It looks like there is an invalid character in the attachment’s name that shows in the blue block below. By the way, I use Get IMAP mail message Activity to recieve mails from outlook.
anynot know how to solve it and download the attachment???
thanks a lot.

@Jianghua
for attachment name you can use
CType(item.Attachments.FirstOrDefault,system.Net.Mail.Attachment).Name

and in the save attachments activity pass only itemMail . it will work

I have sloved this problem,before the save attachments activity,I use assign CType(item.Attachments.FirstOrDefault,system.Net.Mail.Attachment).Name = CType(item.Attachments.FirstOrDefault,system.Net.Mail.Attachment).Name.replace("?","")

Thankyou!

1 Like