RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 3807 | Replies: 3
Reply
Join Date: Aug 2007
Posts: 2
Reputation: cardi22 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cardi22 cardi22 is offline Offline
Newbie Poster

Question Save Image in SQL Database Image field

  #1  
Aug 15th, 2007
Does anyone know if it is possible to save a document to a SQL 2000 database image field from a .NET web form running on Windows 2000 .NET 1.1 framework. I've seen plenty of code on the internet on how to do this in Visual Studio 2005 and .NET 2.0 but now on older platform.

thank you.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Posts: 19
Reputation: postmaster is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
postmaster postmaster is offline Offline
Newbie Poster

Re: Save Image in SQL Database Image field

  #2  
Aug 16th, 2007
Reply With Quote  
Join Date: Aug 2007
Posts: 2
Reputation: cardi22 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cardi22 cardi22 is offline Offline
Newbie Poster

Question Re: Save Image in SQL Database Image field

  #3  
Aug 16th, 2007
Thank you for the link to the article. I tried using this code and I keep getting an error message on File1.PostedFile "object reference not set to an instance of an object". If I wrap it in an If Not Is Nothing statement, it will not fall in the code so apparently nothing is being passed or populated in the File1.PostedFile. I considered using FileUpload, but found that is only available in .net 2.0 or 3.0.

any ideas? thanks again.
Reply With Quote  
Join Date: May 2006
Posts: 19
Reputation: postmaster is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
postmaster postmaster is offline Offline
Newbie Poster

Re: Save Image in SQL Database Image field

  #4  
Aug 18th, 2007
Did you set File control as 'Run as Server Control'
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:29 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC