Sending email with binary attachments in BTS 2006
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Sending email with binary attachments in BTS 2006




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Sending email with binary attachments in BTS 2006  
zia


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-01-06 06:17 AM

I'm trying to send an email with multiple attachments from an orchestration
using a SMTP port in BTS 2006 using custom pipeline component with MIME
encoder. I got it to work where I get an email with multiple attachments but
the attachment data is corrupted for binary attachments (.exe or .doc etc).
The orchestration calls custom .Net code which creates and populates the
multiple parts with the attachment data. Here is the code snippet for
reference:

byte[] databytes = System.IO.File.ReadAllBytes(@"C:\notepad.exe");
MainMessage.AddPart(databytes, "Attachment1");
Microsoft.XLANGs.BaseTypes.XLANGPart part1 = message["Attachment1"];
part1.SetPartProperty(typeof(MIME.FileName), "t2.exe");

How can I get the binary attachments to work without them getting corrupt?
Any help on this would be appreciated.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register