Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Display files from SQL server


Message #1 by "Malathi" <senthil.malathi@a...> on Sun, 23 Feb 2003 13:31:38 +0400
I wanna display documents (word/ppt/pdf/...) uploaded into SQL server image
datatype on asp .net pages.

This is the core snippet to display the file.

Response.AddHeader("Content-Type", dr["doctype"]);
Response.BinaryWrite( (byte[]) dr["Doc"] );


With this code, I get wild characters displayed on the browser for all file
types. Any other setting is reqd?



Regards,
S.Malathi, IT Project Analyst
ADNOC Distribution
P.O. 4188, Abu Dhabi
Tel : 6959480 (D)
Mob : 050 5316055


DISCLAIMER:
-------------------------------------------------------------------------------------------------------------
 Please note that our domain name is changed from adnoc-fod.co.ae to adnoc-dist.co.ae
 Hence change your email addresses accordingly to reflect these changes.
 This communication may contain confidential information.  If you are not the intended recipient 
 please inform us immediately.
 For complete disclaimer note please visit our website at:
 http://www.adnoc-dist.co.ae/emaildisclaimer.htm
                                                                                                                             
 Adnoc Distribution-Tel:02-6771300;Fax:02-6722322;
 Email:webmaster@a...;Website:http://www.adnoc-dist.co.ae


  Return to Index