I had a problem downloading a PDF file from my user site asp.net in a browser from a browser on an Android tablet (Motorola Xoom).
I use Response.OutputStream.Write to send the file because it must read the file from the UNC path. This method works on IE, Firefox, Safari, and iPad, but does not work on the Xoom browser. However, when I downloaded Firefox to Xoom, I was able to download the file just fine.
I found a couple of spots suggesting using the following headers: Content-Type: application / octet-stream Content-Disposition: attachment; file name = "MyFileName.PDF"
I tried this with no luck. I also tried using Content-Types of application / pdf and application / force-download and each combination of a file name with an uppercase letter, an uppercase extension, a lowercase extension, double quotes, single quotes, without quotes, etc. For Content-Disposition and still find something that works.
I also found that if I execute the code to download the file on the_Load page, it can load, but if I do the postback and then execute the code (by clicking the link button to download the file), it doesnβt work
Has anyone been able to upload a file using custom C # code in OOTB Android 3.0 browser?
source share