Discussion Locked

Working with BLOB data

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

This week's .NET e-newsletter discusses how to utilize ADO.NET and C# to work with BLOB data.

Will you use the tips described in this e-newsletter? Please let us know.

If you aren't subscribed to our free .NET e-newsletter, click the following link to automatically sign up:
http://nl.com.com/MiniFormHandler?brand=builder&subs_channel=bldr_front_door&list_id=e605&tag=fb

2 replies

by jstun

I read your article on working with BLOB data in sql server. I am working a program that stores images and sound files. My initial plan was to store this information in a shared folder, however after reading this article I am store this information in the database. Thanks for the article.

by majdbaddour

I read your article and I find it interesting and useful. I was mistified, though, why we have to close the binary writer and the stream file everytime we 255 bytes, then create the objects again, open the stream file and write another 255 bytes, and so on?

bw.Write(outBuffer);
bw.Flush();
startIndex += 255;
bw.Flush();
bw.Close();
fs.Close();

another question is why we have to flush the bw object twice? what is it exactly that the flush method do?

Thanks again for this useful article.
Majd

This discussion is closed to new replies.