I am retrieving a JPEG file via a POST request and need to load it into a Texture. The response has binary data in it. This isn’t loading correctly: I am getting the red checkerboard pattern. Any suggestions?
const response = await $.ajax({
url: imageUri,
type: 'POST',
contentType: "text/plain; charset=utf-8",
});
const texture = BABYLON.Texture.LoadFromDataString("mapTexture", response, scene);