@OMER FARUK DOGANCAY I think you are trying this scenario with JS, I do not have much experience using JS but I see that you are assigning the binary data to the body variable body = imageBytes
and also using a call to makeblob2(imageBytes)
to pass the actual binary data with the body in the payload. I think in this case body = imageBytes
is not necessary.
Although, this is an older thread from SO it is a similar request to pass the image with base64 encoding for reference.
Also, have you tried to use the JS client libraries to pass the local image? computerVisionClient.describeImageInStream() should be straightforward and the client could handle the image format if you just pass the image path.