PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?cmtibmFpcg==?=
Guest
Posts: n/a
 
      18th Oct 2007
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
 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      19th Oct 2007
rkbnair,

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

Cor

 
Reply With Quote
 
=?Utf-8?B?cmtibmFpcg==?=
Guest
Posts: n/a
 
      19th Oct 2007
I'm writing this again because that is not true. When I choose bytes(), it
says it cannot convert type image to byte.
--
test


"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
>

 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      19th Oct 2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Image or Picture from SQL Image Data Type Sam K Microsoft Excel Programming 0 1st Dec 2008 11:04 PM
MISSING Image Tools 1.0 Type Library Duck Microsoft Access 1 23rd Jul 2007 09:56 PM
Q: development Environment =?Utf-8?B?SklNLkgu?= Microsoft ASP .NET 3 2nd Dec 2004 04:03 PM
development environment architecture for ASP.NET development team Akhlaq Khan Microsoft Dot NET 4 27th Sep 2004 02:33 PM
development environment architecture for ASP.NET development team Akhlaq Khan Microsoft ASP .NET 4 27th Sep 2004 02:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:29 AM.