From my view.js, I am uploading a byte[] into an img. It works properly if I execute the client in localhost. However, for a remote client, I am getting "failed to load resource: the server responded with a status of 500" when executing GetImageLoaded.
var img = document.getElementById("ImageBackground");
img.src = '/RecipeNew/GetImageLoaded/' + Date.now();
viewController.cs gets the byte array and creates a FileContentResult object. And this is what is not working remotely.
public ActionResult GetImageLoaded()
{
return File(VOSystem._tempImageLoaded, "image/bmp");
}
Update: I tried several methods but none is working. I really don't want to access to a File. I only want to get the content of a byte array as a result. However base64 string doesn't work so it's a large string.