Groups | Blog | Home
all groups > dotnet ado.net > october 2007 >

dotnet ado.net : Data Type 'Image' is missing from the development environment for


rkbnair
10/18/2007 2:11:00 PM
Please disregard my previous post for the same problem.
the posting was incomplete.

I'm trying to update the data in a DataGridView control.
The underlying data are from SQL Server CE database.
There is an image field in the DataGridView control

when U give the save command, I get the following message.
"@p5 : Byte array truncation to a length of 8000."

Parameter corresponds to the image field. In the parameter, it is displayed
as a Binary. However, I cannot see the type 'Image' in the list of data types.


--
Cor Ligthert[MVP]
10/19/2007 12:00:00 AM
rkbnair,

I thought that I wrote you that an image is a byte() in VB or a byte[] in C#
allready long ago.

Cor
rkbnair
10/19/2007 7:04:01 AM
I'm writing this again because that is not true. When I choose bytes(), it
says it cannot convert type image to byte.
--
test


[quoted text, click to view]
Cor Ligthert[MVP]
10/19/2007 4:11:46 PM
rkbNair,

That is true, you have to stream it, in the best way using the memorystream.

See one of the samples on our website.

http://www.vb-tips.com/DataSetImage.aspx

We have more about database and images.

Cor
AddThis Social Bookmark Button