How to get the email attachment type like XLS or JPG or XML

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to get the email attachment type like XLS or JPG or XML

Viewing 1 reply thread
  • Author
    Posts
    • #19904

       Hi,

      I am working with POP3 adapter getting the Email with XLS and JPG attachments.

      Based on the attachment i need to do the following process.

      so how to find out the attachment type whether the attachment is XLS or JPG

      If any help it would be great.

       

    • #19907

      You could try one of these properties on the attachment part of the multipart message:

      Message.AttachmentPart(Microsoft.XLANGs.BaseTypes.ContentType)

      or

      Message.AttachmentPart(MIME.FileName)

      But you are relying on the sender setting either the content-type or file name appropriately

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.