I have the following function.
private void guardarimagen( byte[] img)
{
var path = Server.MapPath("~/Images/prueba.jpg");
System.IO.File.WriteAllBytes(path, img);
}
EN localhost works fine, but when I try it in production, it tells me error: [object Object]
I imagine it has to do with the issue of permissions, but there must be another way to implement by code to make it work.
If anyone has any ideas, I would appreciate it a lot.