G
Guest
I am trying to display a tiff image in the browsers. I have AlternaTIFF
activex control installed.
I am using the following code
FileStream fs = File.Open(@"c:\temp\test.tif",FileMode.Open);
long len = fs.Length;
byte[] myFile = new byte[len];
fs.Read(myFile, 0, (int)len);
fs.Close();
Response.ContentType = "application/x-alternatiff";
Response.BinaryWrite(myFile);
Response.Flush();
Response.Close();
that works just fine on IE6. However, on IE7 I am getting "A runtime error
occured. LIne: 1, Error: Invalid character" and in debugger it stopes with
"Microsoft JScript runtime error: Object expected".
If I look under Script Explorer I can see res://mshtml.dll/objectembed.js
which I am assuming in generating the JScript error.
Are there any settings or permissions with IE7 that would generate my error?
Are there any work arounds?
Thank you.
activex control installed.
I am using the following code
FileStream fs = File.Open(@"c:\temp\test.tif",FileMode.Open);
long len = fs.Length;
byte[] myFile = new byte[len];
fs.Read(myFile, 0, (int)len);
fs.Close();
Response.ContentType = "application/x-alternatiff";
Response.BinaryWrite(myFile);
Response.Flush();
Response.Close();
that works just fine on IE6. However, on IE7 I am getting "A runtime error
occured. LIne: 1, Error: Invalid character" and in debugger it stopes with
"Microsoft JScript runtime error: Object expected".
If I look under Script Explorer I can see res://mshtml.dll/objectembed.js
which I am assuming in generating the JScript error.
Are there any settings or permissions with IE7 that would generate my error?
Are there any work arounds?
Thank you.