Welcome‎ > ‎Version 2‎ > ‎Publisher Api (Read/Write)‎ > ‎Data Structures‎ > ‎

Generic Image

Data Structure holding an image

Fields:
  bytes - The byte array making up the image.
  contentType - The content type of the image.  'image/png'
  height - The height of the image.
  width - The width of the image.

Sample XML Response:
<image>
    <bytes>iVBORw0KGgoAAAANSUhEUgAAAU4A ...snip... sd/GDiwAAAABJRU5ErkJggg==</bytes>
    <contentType>image/png</contentType>
    <height>51</height>
    <width>334</width>
</image>


Sample JSON Response:
{
    "image": {
        "bytes": [
            73,
            69,
            78,
            68,
           
174, /* truncated */

            66,
            96,
            130
        ],
        "contentType": "image\/png",
        "height": 51,
        "width": 334
    }
}
Comments