Re: How do I dump Image data type in SQL Server

Tech-Archive recommends: Fix windows errors by optimizing your registry



The table connection is working. I tested the connection / fill /
table (ByteTbl) content by dumping a couple of other columns.

The content isn't the problem, because I can dump the contents to a
flat file and interrogate it. By the way the contents of each data
cell is a Crystal Reports template. Every example I've seen about
dumping an image column to a win form Picture Box uses the above code.
So I'm going to try to store my own jpeg images to a table and use the
code above to pull it out again. If that works, then the Picture Box
control probably has a problem storing that kind of data.

Those crazy lines that set my objects to nothing is (1) by habit from
my C/C++/Java days where is was always good practice to do your our
house keeping; (2) do you really trust MS to do all your housekeeping?
Have you ever known a product to have a memory leak? Basically, the
code does hurt, for ME its just a good programming habit.

.