Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda