Response.ContentType : reading file from database (binary) will append html code !
Posted on 2007-03-21
I m using MS 2005 with .net 2.0
my app save file into database table in binary type, and then i will retrieve it to open and view it.
Everytime work ok. But i found that now if i open from database a text file (.txt) from my own machine localhost then nothing wrong with the content, but when i deploy to another server and access the same app (on that server ) and open the file again,the content of the text file will append the html code of current page below the orignal contents!!