Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
ASP .Net File Action Result error 500 on remote client but not on localhost

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!