Get a image of the score in png format. The screen version is associated with the image.
With http server
With websocket server
Example:
var getJsonObject = { id : "145678", method : "image"};
exampleSocket.send(JSON.stringify(getJsonObject));
With http server
The server send the image with the Cache-Control directive set to no-cache. A If-Modified-Since directive with a date can be used to avoid unecessary data transfer. If the score has not been modified since the specified date, a 304 (Not modified) response is returned.
In other case, a normal GET response is returned :
The format of the image is defined by the Mime type in the Content-type header of the response. Only the “image/png” Mime type is currently supported. A custom field X-Inscore-Version is added to header, it contains the current version of the score (see Getting the screen version).
Response code : 200(“success”)
Response body : the image of the score in the format defined in the Content-type header.
With websocket server
The only image format currently supported is ‘png’ (mimeType “image/png”)
Example : {id : "145678", status : "OK", version : 1542, mimeType : "image/png", image : [xxx]}