List:MySQL ODBC« Previous MessageNext Message »
From:Peter Carter Date:May 13 1999 11:30am
Subject:Re: [myODBC]
View as plain text  
At 02:15 PM 5/12/99 +0200, you wrote:
>Hello there,
>We've developped an application with VB5 to link a Linux MySQL database.
>In this DB we've put some pictures (jpeg & gif) via php3 and Linux box.
>This pictures can be displayed with our VB soft on our Win98 box.
>But :
>- when we put pictures with the VB soft, all is wrong : we can't read
>pictures. Doe"s anyone know what's the matter (myodbc driver or
>something else ?)
>Thank's a lot.
>Please check "" before
>posting. To request this thread, e-mail myodbc-thread231@stripped
>To unsubscribe, send a message to the address shown in the
>List-Unsubscribe header of this message. If you cannot see it,
>e-mail myodbc-unsubscribe@stripped instead.

Check the SIZE of the data in the record. If it is double what you expect
you have a string problem.

I expect you have fallen down the path of double-byte strings in VB. If you
ARE using strings use byte arrays instead. This should cure the problem. 

If you convert a string to a byte array, you have to skip every second
element. You are probably better off reading the file into a byte array to
start with.

Peter B. Carter (peterc@stripped)
Home: 613-562-1176
Pager: 613-751-4660

[myODBC]Philippe Chauvat12 May
  • Re: [myODBC]Peter Carter13 May
  • Re: [myODBC]Calistra Research Labs18 May
    • Re: [myODBC]Peter Carter18 May