Show the contact image
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
A contact optionally has an associated image. The image is served separately from the main contact object because it is potentially very large, and because we find it easier to work with the raw binary data.
To GET an image, you must include an Accept header to indicate the desired image format. The supported values for the header are: image/jpeg, image/png, and application/octet-stream.
If you request image/jpeg or image/png, and the image is not already stored in that format, the image data will be converted on-the-fly for the response
If you request application/octet-stream, you will receive the image data exactly as it is stored by Daylite. The most common formats that Daylite uses are TIFF, JPEG, and PNG; but any format that is supported by Cocoa's image classes are possible.
Image FormatsConverting between different image formats may cause the image to degrade in quality. If you are capable of accepting arbitrary image data, we recommend that you request
application/octet-streamfor the image format.
Response Content-TypeUnsuccessful requests will have a Content-Type of
application/json, just as you would receive from other parts of the API.