none
EWS Managed Api: inline image RRS feed

  • Question

  • 1.Questions

    how to matched image?

    ex)

    <body>

    test

    (inline image)<-<image src="cid:~~~~~~"/>   <- How to position an image?

    on the test

    (inline image)<-<image src="cid:~~~~~~"/>  <- How to position an image?

    end

    <\body>

    2.Questions

    I made ​​a URL.

    changed body.

    ex)

    <body>

    test

    <img src="https://exchnage_server/owa/service.svc/s/GetFileAttachment?id=Attachment_ID1"/.....>

    on the test

    <img src="https://exchnage_server/owa/service.svc/s/GetFileAttachment?id=Attachment_ID2"/.....>

    end

    <\body>

    But does not work.

    I'm using asp.net.

    I need help.


    Monday, September 23, 2013 2:24 AM

Answers

All replies

  • The AttachmentId is the EWS attachment Identifier and has nothing to do with the ContentId.

    GetItem will return a collection of AttachmentId's, ContentId and whether it is Inline or not see http://msdn.microsoft.com/en-us/library/hh532564(v=exchg.80).aspx for an example of adding an inline image.

    Cheers
    Glen

    Monday, September 23, 2013 5:33 AM
  • Thank you for your reply.
    Glen.

    1.Questions

    What I want is not added.
    Body will draw on the image.


    2.Questions

    I made ​​the same URL OWA.

    Body add the URL of the content, but does not work.

    <img originalsrc="cid:12db84d8-86c3-4225-a185-ec8b5bb821de" src="https://myserver/owa/service.svc/s/GetFileAttachment?id=AQMkAGQxNmJmNTYyLTMwYTQtNGI0ZS05MDJjLTNmYzE4OTU3NjE4MwBGAAADjuu16Q19KUy1e8Cz5F4ZhAcACHm6u0VuvUOLd06pI4unMAAAAw4AAAAIebq7RW69Q4t3Tqkji6cwAAAAE1Z4HAAAAAESABAA1%2FF%2FIQqFmUuKu4ECm%2B84MQ%3D%3D" title="" originalwidth="1280" originalheight="720" width="320" height="180" rszimgcmd="25">

    My point is Inline Image I want to output in the body.


    Monday, September 23, 2013 6:38 AM
  • 1. You might want to try posting the code your using

    2. You shouldn't be using "src=https://myserver/owa/service.svc/s/GetFileAttachment in a URL as this will never be valid as this is something that OWA generate based on the content of the Message. What you would add as a URL would be the start MIME format.

    Cheers
    Glen

    Monday, September 23, 2013 11:06 PM
  • Has solved the problem. Thanks for the help Glen.

    Convert.ToBase64String (file.Content)
    This has solved the problem by using the source.


    Other questions

    This eDiscovery_Role to set the right?

    EAC Logon -> permissions -> admin Roles -> Add roles -> new role group
    -> MailboxSearchApplication add -> Members Add

    But the error is printed.
    "The caller has not assigned any of the RBAC roles requested in the management role header."

    I need to set something else?

    service.ManagementRoles use?

    Tuesday, September 24, 2013 4:08 AM
  • You need the Discovery Management Role to use eDiscovery see http://technet.microsoft.com/en-us/library/dd298021(v=exchg.150).aspx "In-Place eDiscovery uses the content indexes created by Exchange Search. Role Based Access Control (RBAC) provides the Discovery Management role group to delegate discovery tasks to non-technical personnel"

    If EAC doesn't work I would suggest trying the Exchange Management Shell (as EAC is still a bit buggy in 2013) http://technet.microsoft.com/en-us/library/dd638091(v=exchg.150).aspx

    Cheers
    Glen

    Tuesday, September 24, 2013 7:48 AM