I am having problems taking a binary file such as an image and inserting it into a SQL Table. I have used a statement to convert the image into an array of bytes like this:
Dim buffer(objStream.Length) As Byte
objStream.Read(buffer, 0, objStream.Length)
This works fine and then I can do a Response.BinaryWrite(buffer) and write the image out to the browser. My problem is that I can not figure out how to place the image into a simple insert statement. Any help would be greatly appreciated.
Dim buffer(objStream.Length) As Byte
objStream.Read(buffer, 0, objStream.Length)
This works fine and then I can do a Response.BinaryWrite(buffer) and write the image out to the browser. My problem is that I can not figure out how to place the image into a simple insert statement. Any help would be greatly appreciated.