User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,397 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,597 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 4931 | Replies: 4
Reply
Join Date: Sep 2007
Posts: 4
Reputation: vudugumahesh is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vudugumahesh vudugumahesh is offline Offline
Newbie Poster

Solution how to upload a doc file into database

  #1  
Sep 18th, 2007
hi everybody,
i am doing a small project in that project i need to upload a doc file into database.
i am doing project in asp.net2005 with c# please help in coding


thanks

mahesh kumar
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: how to upload a doc file into database

  #2  
Sep 18th, 2007
What database are you using? if Sql Server 2000 the general rule is to just save the path to the file in the database. The logic being: Files belong in a file system not a relational database. But, you can store files in binary format as BLOBS (Binary Large Objects) in the image datatype column of SqlServer 2000. In SqlServer 2005 you have varbinary(max) datatype which is better.
Last edited by hollystyles : Sep 18th, 2007 at 11:50 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Sep 2007
Posts: 4
Reputation: vudugumahesh is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vudugumahesh vudugumahesh is offline Offline
Newbie Poster

Help Re: how to upload a doc file into database

  #3  
Sep 18th, 2007
iam using sqlserver 2005
please can u send me code in c#
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: how to upload a doc file into database

  #4  
Sep 18th, 2007
Trust me, whatever you want to do someone's already done it. Just use Google:

http://www.codeproject.com/useritems/Store_and_manipulat_BLOBs.asp?msg=2232721

That's C# code.

Try and implement it in your project. If you get stuck, come back and post or code/error and well help you get it working.
Last edited by hollystyles : Sep 18th, 2007 at 12:20 pm.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Sep 2007
Posts: 4
Reputation: vudugumahesh is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vudugumahesh vudugumahesh is offline Offline
Newbie Poster

Re: how to upload a doc file into database

  #5  
Sep 19th, 2007
Originally Posted by hollystyles View Post
Trust me, whatever you want to do someone's already done it. Just use Google:

http://www.codeproject.com/useritems/Store_and_manipulat_BLOBs.asp?msg=2232721

That's C# code.

Try and implement it in your project. If you get stuck, come back and post or code/error and well help you get it working.



Thanks sir
Reply With Quote  
Reply

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

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 1:04 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC