User-455010333 posted
Hi All,
Not sure if this issue should be posed here, but i try anyway:
I have a webpage with a button, button click the webpage will write an image (in binary) to the response object, resulting the user can open or save an image.
Code:
response.ClearHeaders();
response.ClearContent();
response.AddHeader("Content-Disposition", "attachment; filename=abc.jpg");
response.AddHeader("Content-Length", binaryImageFile.Length.ToString());
response.BinaryWrite(binaryImageFile);
response.Flush();
response.Close();
Everything is fine in IE in Windows, but in Safari in IPad/IPhone, it is viewed in a seperate browser tab, with the binary image file written as a very long string.
In Windows, i know you have to select a program to use to open a new file type for the first time, is this the case in IPad? that i need to select a program?
Any ideas? Many Thanks.