Hello. How to correct send image to api? Used several ways, but for some reason I get BadRequest. In API documentation they use this example nodejs code:
await fetch("url", {
method: "POST",
body: fs.readFileSync("demo.jpg"),
headers: { "Content-type": "image/jpeg" },
}).then((e) => e.json());