Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Data Structures‎ > ‎

Image

The data structure holding image data.  This image is created for displaying on the voucher page.

Fields:
Field Data Type Nulls Description
bytes binary

The raw data bytes making up the image.
contentType
string

The content type for the image, such as img/jpg, img/png, etc
height string

The height of the image.
width string

The width of the image.
 

Sample JSON Response:
{
    "errors": [],
    "lastPublished": "/Date(1320744079670)/",
    "success": true,
    "version": "3",
    "image": {
        "bytes": [
            137,
            80,
            78,
            71,
            13,
            10,
            26,
            /* snip */
        ],
        "contentType": "image/png",
        "height": 51,
        "width": 334
    }
}



Sample XML Response:
<image>
    <bytes>
        iVBORw0KGgoAAAANSUhEUgAAAU4A
        <!-- snipped -->
    </bytes>
    <contentType>image/png</contentType>
    <height>51</height>
    <width>334</width>
</image>

Comments