How do i save and retrieve a file in a database,
have used streams in vb6 but doesnt seem to work for me in c#.
can someone please help

Recommended Answers

All 2 Replies

Stream works in C#, just convert your file to binary data and save it into column of datatype that's for SQL Server 2000/2005 but if you use SQL Server 2008 you don't need to convert it to Binary as there's datatype called FileStream.

thank you very much it worked

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.