Home All Groups Group Topic Archive Search About

Data Type 'Image' is missing from the development environment for

Author
18 Oct 2007 9:11 PM
rkbnair
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.


--
test

Author
19 Oct 2007 4:13 AM
Cor Ligthert[MVP]
rkbnair,

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

Cor
Author
19 Oct 2007 2:04 PM
rkbnair
I'm writing this again because that is not true. When I choose bytes(), it
says it cannot convert type image to byte.
--
test


Show quote
"Cor Ligthert[MVP]" wrote:

> rkbnair,
>
> I thought that I wrote you that an image is a byte() in VB or a byte[] in C#
> allready long ago.
>
> Cor
>
Author
19 Oct 2007 2:11 PM
Cor Ligthert[MVP]
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