Archived Forum Post

Index of archived forum posts

Question:

Adding attachment from stream

Jul 01 '13 at 20:22

Hi, Is there anyway i can add attachment from stream in chilkat email object? I am trying to add attachment directly from FileUpload Control. Generally this can be done like this:

Dim fileName As String = Path.GetFileName(FileUpload1.PostedFile.FileName) Dim myAttachment As New Attachment(FileUpload1.FileContent, fileName) myMailMessage.Attachments.Add(myAttachment)

Is it possible to do with Chilkat Email?

Thanks.


Answer

Anyone there to answer this?


Answer

I'm sorry to say that it's not a feature available in the Chilkat API. For now, the Chilkat API is focused on cross-platform, cross-programming language compatibility. Using streams tends to be specific to a single programming language. Chilkat may address this in the future, but it's not possible for now.

PS> An easy way to answer this question for yourself would be to examine the online reference documentation. If there are no methods for loading an attachment from a stream, then (of course) the feature is not present..


Answer

Regarding your PS! i do always check your references, blog and example code. But i was hoping some miracle as you already developed this excellent product.

Many thanks for the clarification.