From: Date: July 20 2004 10:59pm Subject: RE: Using a Blob with the ByteFX data provider List-Archive: http://lists.mysql.com/win32/15205 Message-Id: <002701c46e9c$82e3b090$0200a8c0@endeavor> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nick Yes, this was also a problem and has been fixed. -reggie > -----Original Message----- > From: Nick Randell [mailto:nick@stripped] > Sent: Tuesday, July 20, 2004 12:01 AM > To: 'Reggie Burnett'; win32@stripped > Subject: RE: Using a Blob with the ByteFX data provider >=20 > I also found a problem with Packet.ReadLenInteger. >=20 > It was using the values for shortLen, intLen and longLen to read the > length > of the blob that is sent across. As Packet.LongInts had been set to = try, > this meant that it was using 4 bytes to read the length when it should > have > been using 3. I changed ReadLenInteger to the following >=20 > public long ReadLenInteger() > { > byte c =3D (byte)ReadByte(); >=20 > switch(c) > { > case 251 : return NULL_LEN; > case 252 : return ReadInteger(2); > case 253 : return ReadInteger(3); > case 254 : return ReadInteger(8); > default : return c; > } > } >=20 > This is working for me, so hopefully this was the correct thing to do. >=20 > Regards >=20 > Nick >=20 >=20 > -----Original Message----- > From: Reggie Burnett [mailto:rykr@stripped] > Sent: 19 July 2004 22:05 > To: 'Nick Randell'; win32@stripped > Subject: RE: Using a Blob with the ByteFX data provider >=20 > Nick >=20 > This is a valid change. In fact, we have already made that change in = our > source repository so this bug will be fixed in the forthcoming beta > release. >=20 > -reggie >=20 > > -----Original Message----- > > From: Nick Randell [mailto:nick@stripped] > > Sent: Friday, July 16, 2004 12:45 AM > > To: win32@stripped > > Subject: Using a Blob with the ByteFX data provider > > > > I'm trying to use a blob to read into a typed dataset using the = ByteFX > > data provider, but this gives an 'Inconvertable type mismatch' = error. > > > > I've managed to hack this to work by converting the GetFieldType > > method in Field.cs to return 'typeof(byte[])' for binary blobs = instead > > of 'typeof(System.Array)'. > > > > Is this a valid change, or am I doing something else wrong? > > > > Thanks > > > > Nick > > >=20 >=20 > -- > MySQL Windows Mailing List > For list archives: http://lists.mysql.com/win32 > To unsubscribe: = http://lists.mysql.com/win32?unsub=3Dnick@stripped >=20