GET api/Utility/GetResourceSchedulerImage?imageId={imageId}

Get Resource Scheduler Image The image data (stored as varbinary(max) in the db) is returned as a Hex String along with the File Extension. To save this as an image, it needs to be converted to a byte array and saved as an 'image' object: Remove the first two characters then convert to a Binary Array and save as image. string hexString = "0xFFD8FFE000104A46494600010101005C00580000FFFE001C5........."; string fileExtension = "jpg"; hexString = hexString.Substring(2); byte[] bytes = StringToByteArray(hexString); System.Drawing.Image image; using (MemoryStream ms = new MemoryStream(bytes)) { image = Image.FromStream(ms); image.Save("C:\\myimage." + fileExtension); }

Request Information

URI Parameters

NameDescriptionTypeAdditional information
imageId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Dictionary of string [key] and string [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": "sample string 2",
  "sample string 3": "sample string 4"
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringstring>
    <Key>sample string 1</Key>
    <Value>sample string 2</Value>
  </KeyValueOfstringstring>
  <KeyValueOfstringstring>
    <Key>sample string 3</Key>
    <Value>sample string 4</Value>
  </KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>