Thanks !
indeed,to avoid this I'm setting default values for every field in 
datatable,for numeric 0, for strings "" but for blob ???



________________________________
 From: Jiri Cincura <disk...@cincura.net>
To: Mr. John <mr_joh...@yahoo.com>; For users and developers of the Firebird 
.NET providers <firebird-net-provider@lists.sourceforge.net> 
Cc: Gerdus van Zyl <gerdusvan...@gmail.com> 
Sent: Saturday, November 3, 2012 3:09 PM
Subject: Re: [Firebird-net-provider] Help with retrieving/binding image from 
database
 
On Sat, Nov 3, 2012 at 9:50 AM, Mr. John <mr_joh...@yahoo.com> wrote:
> Invalid cast from 'System.DBNull' to 'System.Drawing.Image'.

Your code should check for NULLs, either in database and handle empty
result set or in result directly.

--
Jiri {x2} Cincura (x2develop.com founder)
http://blog.cincura.net/ | http://www.ID3renamer.com
------------------------------------------------------------------------------
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