Retrieve a Photo
Applies To: Windows Server 2012 Essentials
Retrieves a photo.
URI Template
GET services/builtin/MediaManagement.svc/photo/{ID}/isOriginal/{Isoriginal}/width/{width}/height/{height}
{ID}
The photo identifier.
{Isoriginal}
true
to return the original data and ignore the specified width and height; otherwise, false
.
{width}
The width of the photo. This value is required, but it is ignored if {Isoriginal} is true
.
{height}
The height of the photo. This value is required, but it is ignored if {Isoriginal} is true
.
Sample Request
GET https://www.contoso.com/services/builtin/MediaManagement.svc/photo/B-358/isOriginal/false/width/640/height/480 HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Sample Response
HTTP/1.1 200 OK
[binary]
Error Codes
Error Code | Error Message |
---|---|
400 | One or more parameters are not valid. |
401 | Access is denied to the requested resource. |
404 | The path does not exist. |