General discussion

Locked

Working with BLOB data

By MaryWeilage Editor ·
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

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Working with BLOB data

by Jstun In reply to Working with BLOB data

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.

Collapse -

why close the stream file?

by majdbaddour In reply to Working with BLOB data

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

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums