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
Mukil VendhanPosted Sep 15, 2017, 11:50 PM
There's a problem with your CSS rule:
Your using the shorthand notation in which the
background-size-property comes after thebackground-position-property and it must be separated by a/.What you're trying to do is to set the position, but it will fail as
autois not a valid value for it.To get it to work in shorthand notation it has to look like this:
cover, which may be suitable and more flexible here:The support for
background-sizein the shorthand notation is also not very broad, as it's supported in Firefox 18+, Chrome 21+, IE9+ and Opera. It is not supported in Safari at all. Regarding this, I would suggest to always use: