Sounds like you need Acrobat 8 to make it work, i presume the file is an
acrobat 8 file or something? Try using a file that uses earlier versions of
acrobat and see what results you get. It may be that it needs acrobat or
some assemblies for it? I have nevr done what your attempting so that's the
best advice i can give.
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
>
I'm running this code to open a stream as pdf file:
Response.ContentType = "application/pdf";
try
{ mystream = someStream....;
byte[] myfile = mystream.ReadBytes((int)someStreamLenght);
myfile.Length.ToString();
Response.BinaryWrite(myfile);
}
finally
{
Response.Flush();
Response.Close();
mystream.Close();
}
but I run it in a 3 different machines it's telling me that the file is
corrupt or damaged.
and when running it in different machine that have the latest Acrobat 8.0
the document is opening fine!!!?
is this an issue with ASP? because I running VS 2005.
Cheers.