Help. How do I do this. I have spent hours trying to do this.
I have the image as a byte stream...
FileStream fs = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
byte b = new byte[fs.Length - 1];
fs.Read(b, 0, b.Length);
THIS DOESN'T WORK
string query = "Insert into test1 (age, name, pict) values (54, 'kim', " + b + ")";
SO I STARTED THIS.
string query = "Insert into test1 (age, name, pict) values (54, 'kim', empty_blob())";
DO I NEED TO NEXT DO A SELECT TO retrieve a pointer to the blob and then fill it or something along those lines?
CODE would be very valuable!!
View Complete Post