REST API + inline images RRS feed

  • Question

  • Hi,

    I am trying to display (in my C# app) messages received via REST API with inline images (image in body html with src="cid:image001.png@01D0349B.665C13B0").

    I can see no image/attachments in message.

    Can u pls advise?



    Tuesday, January 20, 2015 2:21 PM

All replies

  • Can you provide more information? I just checked an HTML message with an inline image and it worked as expected.
    Tuesday, January 20, 2015 3:50 PM
  • thanks,

    I get a JSON array of messages from the REST API.

    One of the messages has a BODY with ContentType HTML and within the HTML an image with src="cid:image001.png@01D0349B.665C13B0"

    How can I retrieve this image?

    (I am trying to create a new message based on this one. I need to obtain this image in order to add it inline to the new message).

    Tuesday, January 20, 2015 4:11 PM
  • You need to do a GET on the Attachments property from the message's JSON. https://msdn.microsoft.com/office/office365/APi/mail-rest-operations#MessageoperationsGetattachments
    Wednesday, January 21, 2015 2:17 PM