Note that there are some explanatory texts on larger screens.

plurals
  1. POEWS + Exchange 2007: Retrieve inline images
    primarykey
    data
    text
    <p>Working in C# with the EWS Managed API, we're having trouble efficiently retrieving the images stored as inline attachments.</p> <p>The endpoint is to show an email with inline images as a fully formed html page in a panel. The code we currently us:</p> <pre><code> string sHTMLCOntent = item.Body; FileAttachment[] attachments = null; if (item.Attachments.Count != 0) { attachments = new FileAttachment[item.Attachments.Count]; for (int i = 0; i &lt; item.Attachments.Count; i++) { string sType = item.Attachments[i].ContentType.ToLower(); if (sType.Contains("image")) { attachments[i] = (FileAttachment)item.Attachments[i]; string sID = attachments[i].ContentId; sType = sType.Replace("image/", ""); string sFilename = sID + "." + sType; string sPathPlusFilename = Directory.GetCurrentDirectory() + "\\" + sFilename; attachments[i].Load(sFilename); string oldString = "cid:" + sID; sHTMLCOntent = sHTMLCOntent.Replace(oldString, sPathPlusFilename); } } } </code></pre> <p>(sourced: <a href="http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/ad10283a-ea04-4b15-b20a-40cbd9c95b57" rel="nofollow">http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/ad10283a-ea04-4b15-b20a-40cbd9c95b57</a>)</p> <p>.. this is not very efficient though and is slowing down the responsiveness of our web app. Does anyone have a better solution for this problem? We are using Exchange 2007 SP1, so the IsInline property wont work as its Exchange 2010 only.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload