1
votes

I am facing an issue with Azure Computer Vision API. If I send a request with contentType = application/json and image URL in JSON request body things work fine but on sending a binary image(base 64 encoded) with contentType = application/octet-stream it gives me ImageFormatInvalid in the resp

[
    {
        "key": "Ocp-Apim-Subscription-Key", 
        "value": "6f7ff175139e4e1d8b943c6170fe5b8e",
        "description": ""
    },
    {
        "key": "Content-Type",
        "value": "multipart/form-data",
        "description": ""
    }
]

Content-Type: multipart/form-data and asking input as binary image data

1
You might want to change your api key now - Gerald Versluis

1 Answers

2
votes