title: ASP .Net File Action Result error 500 on remote client but not on localhost
body: <p>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 &quot;failed to load resource: the server responded with a status of 500&quot; when executing GetImageLoaded.</p>
  <pre><code>    var img = document.getElementById(&quot;ImageBackground&quot;);
  
      img.src = '/RecipeNew/GetImageLoaded/' + Date.now();
  </code></pre>
  <p>viewController.cs gets the byte array and creates a FileContentResult object. And this is what is not working remotely.</p>
  <pre><code> public ActionResult GetImageLoaded()
          {
              return File(VOSystem._tempImageLoaded, &quot;image/bmp&quot;);
          }
  </code></pre>
  <p>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.</p>