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

Recommended Answers

All 4 Replies

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.

iam using sqlserver 2005
please can u send me code in c#

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.