The service also creates and executes a MQL query to register the content object in the graph and associate it with an existing document or newly created document as the case may be.
more
- Supported image formats are PNG, JPG, and GIF.
-
If the
document argument is not provided a new one is created
-
If
content_type argument is not provided, the service looks for the HTTP Content-Type header to get the information
-
If the
content_type argument and the HTTP Content-Type header are both provided the form argument takes precedence
-
If
text_encoding is not provided and either the content-type form argument or the HTTP Content-Type header is provided with the charset, that value is used for text-encoding.
-
If
text_encoding form argument is provided it overrides every other source for the information.
The service also creates and executes a MQL query to register the content object in the graph and associate it with an existing document or newly created document as the case may be.
Sample response
{
"status": "200 OK",
"code": "/api/status/ok",
"result": {
"length": 12345,
"blob_id": "a1b9ebd70edb595535b83aa428bca9e5f744e94f9039b41d89d13840c6402119",
"language": "/lang/en",
"media_type": "image/jpeg",
"text_encoding": null,
"type": "/type/content",
"id": "#4401a8c040004d8a80000000000491b4"
}
}
less