Hi
byte[] byteInfo = System.IO.File.ReadAllBytes(Path.Combine(System.Web.HttpContext.Current.Server.MapPath(args.Path), args.Names[0])); Response.Clear(); Response.BufferOutput = true; Response.ContentType = MimeMapping.GetMimeMapping(Path.Combine(args.Path, args.Names[0])); Response.AddHeader("Content-Disposition", "attachment; filename= " + args.Names[0]); Response.BinaryWrite(byteInfo);
It works well on Windows and MAC devices. But on IPAD mini, it open the image in encoded format like below
IHDR o³oa sRGB ®Îé ïiTXtXML:com.adobe.xmp <x:xm