Docs‎ > ‎Debugging‎ > ‎REST Lab‎ > ‎

Working with binary data

Use the Demo sample application and in the REST Lab - select employee_picture and do a GET.

https://localhost:8080/APIServer/rest/el-dev/demo/v1/demo%3Aemployee_picture

returns:
note that the JSON will return a base64 encoded string (icon), or a link to the actual picture or voice image using a /data/ link instead of a /rest/ link.
employee_id": 1,
    "icon": {
      "type": "base64",
      "length": 1185,
      "value": "iVBORw0KGgoAAAANSUhEUgAAA... (truncated)"
    },
"picture": {
      "type": "base64",
      "length": 138795,
      "url": "https://server.acme.com/data/el-dev/demo/v1/demo:employee_picture/1/picture"
    },
voice": {
      "type": "base64",
      "length": 127187,
      "url": "https://server.acme.com/data/el-dev/demo/v1/demo:employee_picture/1/voice"
    }


https://demodev.espressologic.com/data/el-dev/demo/v1/demo:employee_picture/1/picture
returns:

{
  "0": "�",
  "1": "P",
  "2": "N",
  "3": "G",
  "4": "
",
  "5": "
",
  "6": ".",
  "7": "
",
  "8": "",
  "9": "", truncated ...