How to save image in Sql database 2005

Please support our ASP.NET advertiser: 50% Off 6 Months Web Hosting from 1&1. The World's #1 Host!
Reply

Join Date: Feb 2009
Posts: 19
Reputation: Abhishek_Boga is an unknown quantity at this point 
Solved Threads: 0
Abhishek_Boga Abhishek_Boga is offline Offline
Newbie Poster

How to save image in Sql database 2005

 
0
  #1
Feb 8th, 2010
Hi Sir,

I was trying hard to get the image on the Crystal report when the user selects the formid from aspx form in .net. Kindly let me know how to save the image in the database by coding so that whenever I select the formid the image should display on the report. Not just by doing in the crystal report only...

Kindly help me out...
Thank you.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 3,955
Reputation: adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future adatapost has a brilliant future 
Solved Threads: 707
Moderator
adatapost adatapost is offline Offline
Senior Poster
 
0
  #2
Feb 8th, 2010
To store byte array (content of file), use Image column(field) type and use parametrized SQL insert statement/stored-procedure to save the content of file into a table.
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 341 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC