Search code examples
vbarestoutlookoutlook-restapi

Outlook Rest api, how to store the photo?


i think this is a pretty simple question, sorry.

I have with

GET https://outlook.office.com/api/v2.0/me/contacts('AAMkAGE1M2IyNGNm===')/photo/$value
Content-Type: image/jpg

read the photo.

but now i don't know how to save this photo value as a jpg file.


Solution

  • ok, here is my own answer:

    photo.Write web_HTTP.ResponseBody
    

    use ResponseBody (an array) instead of ResponseText!