[Firebird-net-provider] Help with retrieving/binding image from database

2012-11-02 Thread Mr. John
Hi !  I'm using VB.2008 with FB 2.5/,Net provider version 2.7.7.0   I want  to save and retrieve/bind image from/to picture box control image database field :   F_IMAG      BLOB SUB_TYPE 1 SEGMENT SIZE 4096 saving to database :          Dim IMG As New Bitmap(PictureBox1.Image)            

[Firebird-net-provider] Help with retrieving/binding image from database

2012-11-02 Thread Mr. John
Because yahoo put this email in Spam folder  I've moved code into pastebin.com  links  and resend it : Hi !  I'm using VB.2008 with FB 2.5/,Net provider version 2.7.7.0   I want  to save and retrieve/bind image from/to picture box control image database field :   F_IMAG      BLOB SUB_TYPE 1

Re: [Firebird-net-provider] Help with retrieving/binding image from database

2012-11-02 Thread Gerdus van Zyl
Blob sub_type 1 is Text. sub_type 0 is binary. That is why you are getting a string from the database. see http://www.firebirdfaq.org/faq165/ On Fri, Nov 2, 2012 at 2:32 PM, Mr. John wrote: > Hi ! > I'm using VB.2008 with FB 2.5/,Net provider version 2.7.7.0 > > I want to save and retrieve/bin

Re: [Firebird-net-provider] Help with retrieving/binding image from database

2012-11-02 Thread Mark Rotteveel
On Fri, 2 Nov 2012 05:32:43 -0700 (PDT), "Mr. John" wrote: > Hi ! >  I'm using VB.2008 with FB 2.5/,Net provider version 2.7.7.0   > > I want  to save and retrieve/bind image from/to picture box control > > > image database field :  >  F_IMAG      BLOB SUB_TYPE 1 SEGMENT SIZE 4096 BLOB SUB_TYP

Re: [Firebird-net-provider] Help with retrieving/binding image from database

2012-11-02 Thread Jiri Cincura
On Fri, Nov 2, 2012 at 1:32 PM, Mr. John wrote: > BLOB SUB_TYPE 1 Why "1"? It's binary, isn't it? -- Jiri {x2} Cincura (x2develop.com founder) http://blog.cincura.net/ | http://www.ID3renamer.com -- LogMeIn Central: Ins