Thanks !
Indeed that is the problem,thanks also to Mark and Jiri !

I have just one little problem:when I select no picture(there is no need for 
user to select always a picture) I got another error : Invalid cast from 
'System.DBNull' to 'System.Drawing.Image'.
 when I call bindingsource :
   bSource_.EndEdit()

Thanks !



________________________________
 From: Gerdus van Zyl <gerdusvan...@gmail.com>
To: Mr. John <mr_joh...@yahoo.com>; For users and developers of the Firebird 
.NET providers <firebird-net-provider@lists.sourceforge.net> 
Sent: Friday, November 2, 2012 3:55 PM
Subject: Re: [Firebird-net-provider] Help with retrieving/binding image from 
database
 

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/
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to