how to get an image from flask api in react native
问题 I'm sending an image using flask to react native, I get "200 OK" if I used postman and I also see the image, but when I'm using react native to get the image and display it on the screen I get the "error Unexpected token � in JSON at position 0." here's the code: fetch("http://10.0.2.2:5000/api/echo", { method: "POST", headers: { Accept: "application/json", "Content-Type": "application/json" }, body: JSON.stringify({ x: 0, y: 0 }) }) .then(response => response.text()) .then(responseJson => {