none
Download cid: embebed images RRS feed

  • Question

  • Hi, i am inserting an HTML that came from Exchenge OnLine, but i can’t render the images, i tried the Message.ID, Attachement.ID and Attachment.Content.ID, but nothing works

    Where it is the image link copied directly from Outlook WebApp

     

    https://xxxxxxx.outlook.com/owa/attachment.ashx?id=RgAAAAAt52OGo9yZT4IwMCBo3KGABwD9ZzaVxxk6S5uIsw6qYDUGAAAAADLwAAC%2fhTE01B0YQ60Iu2p8z6KwAAAO1L%2fIAAAJ&attcnt=1&attid0=BAAAAAAA&attcid0=image0067.png%4001CBF090.C2509950
    
    

    What id is this? and how can i get it? in that case i could display the image within

    public static string LeMenssagemPorId(string messId)
    
      {
    
       PropertySet psPropSet = new PropertySet(BasePropertySet.FirstClassProperties)
    
              {
    
               RequestedBodyType = BodyType.HTML
    
              };
    
       Item mess = Item.Bind(GetService(), messId, psPropSet);
    
       
    
    
    
       
    
       mess.Body.BodyType = BodyType.HTML;
    
       string body = mess.Body.Text;
    
       string myBody = Ews.ReplaceInBody(body, "cid:", DefaultFoldersLinks.ExchangeUrlBody + ObterLinksAnexosImagens(messId) + "=");
    
       return myBody;
    
    

     

    Thanks

    Joao


    MVP Office Development, MCP, MCTS SharePoi
    • Edited by Joao Livio Tuesday, April 5, 2011 11:05 AM Bad English, corrected
    Monday, April 4, 2011 4:37 PM