How to render Streamable image on React coming from FastAPI server?
You could either encode the image data to Base64 format on server side and return the base64-encoded string, which can then be used to display the image in the HTML page as shown here (e.g., <img src=”data:image/png;base64, …), or send the raw bytes—it might be best not to use a StreamingResponse for sending the raw … Read more