I have this code :
UploadImageControl1.BinaryData =ServiceInfoDt["SERVICE_LOGO"]!=null?(byte []) ServiceInfoDt["SERVICE_LOGO"]:null;
BinaryData
is a byte array byte[]
buy i am receiving this error :
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.