944,047 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 13298
  • ASP.NET RSS
Sep 18th, 2007
-1

how to upload a doc file into database

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vudugumahesh is offline Offline
4 posts
since Sep 2007
Sep 18th, 2007
0

Re: how to upload a doc file into database

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.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Sep 18th, 2007
0

Re: how to upload a doc file into database

iam using sqlserver 2005
please can u send me code in c#
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vudugumahesh is offline Offline
4 posts
since Sep 2007
Sep 18th, 2007
0

Re: how to upload a doc file into database

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.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Sep 19th, 2007
0

Re: how to upload a doc file into database

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vudugumahesh is offline Offline
4 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Installation issues...
Next Thread in ASP.NET Forum Timeline: Is there possible to use module class in web application..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC