Does anyone know why, when I try and stream a PDF file for download from a web page using the adodb.stream object it gives me problems and yet when I do it with any other type of file (using the same code) it is fine.
Are you not setting the appropriate ContentType?
I am setting to: application/pdf for PDFs
I don't know - I'd check Adobe's site or somewhere that tells the various content types.<BR><BR>But, if everything else is the same... it should work. No?
files "text" types as opposed to "binary" types?<BR><BR>Hint..hint
If he is using the ADODB.Stream object?<BR><BR>Ohh.. is there a data type property?
objStream.Type = 1 '**binary<BR>objStream.Type = 2 '**text - default
It works when I stram down jpgs, word docs, excel files etc etc
code ; )
reader installed on the client you are trying this from? Right?<BR><BR>Have you tried testing on a different machine?