I am able to use it perfectly in VB.
I am able to store and retreive the images back into picture control.
Now I need the same functionality (store in DB) for word files in Visual c++ code. Could you please help me in this.
Thanks in Advance
vc++ loading images
Posted by karuna
on 02/12/2013 11:20am
Hi sandeep, i want same code in vc++, can u post the code to me to mail
i got error on this line
[Dim arrayImage() As Byte =_ CType(Me.PayrollDataSet1.Tables(0).Rows(Me.ListBox1.SelectedIndex)("picture"), Byte())]
"Unable to cast object of type 'System.DBNull' to type 'System.Byte'."
i change this line
MySqlDbType."change to Blob instead of Image")).Value = arrayImage
Dim outbyte(bufferSize + 1) As Byte
Dim ms As New MemoryStream(outbyte)
retval = reader.GetBytes(0, 0, outbyte, 0, bufferSize)
curImage = Image.FromStream(ms) -----> error
What is bad here???
Posted by asifpithawala
on 02/16/2007 09:32am
i m also getting this prob. if u get some thing which solve this issue then please mail me at-