how to upload a doc file into database

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 4
Reputation: vudugumahesh is an unknown quantity at this point 
Solved Threads: 0
vudugumahesh vudugumahesh is offline Offline
Newbie Poster

how to upload a doc file into database

 
0
  #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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: how to upload a doc file into database

 
0
  #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 12:50 pm.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 4
Reputation: vudugumahesh is an unknown quantity at this point 
Solved Threads: 0
vudugumahesh vudugumahesh is offline Offline
Newbie Poster

Re: how to upload a doc file into database

 
0
  #3
Sep 18th, 2007
iam using sqlserver 2005
please can u send me code in c#
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: how to upload a doc file into database

 
0
  #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 1:20 pm.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 4
Reputation: vudugumahesh is an unknown quantity at this point 
Solved Threads: 0
vudugumahesh vudugumahesh is offline Offline
Newbie Poster

Re: how to upload a doc file into database

 
0
  #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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC