Unable to cast object of type 'System.DBNull' to type 'System.Byte[]


Author
Message
MarcoR
MarcoR
StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)
Group: Forum Members
Posts: 15, Visits: 39
Hi, I am reading an image field from the database into a property of type[]. When the field is null, I get an Unable to cast object of type 'System.DBNull' to type 'System.Byte[]  error. I have changed the StrataFrame generated code for the BO to fix it, but is there some setting that I need to make when generating the BO so this is automatically handled correctly in the generated BO? BigGrin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search