jeya pandi

jeya pandi

  • NA
  • 62
  • 18.9k

When download the image file in IPAD mini device,imagenotsho

Sep 11 2017 5:21 AM

Hi

I have the below code to download the file
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

Answers (1)