StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]
Post Reply
Like
0
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
MarcoR
MarcoR
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
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?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]
MarcoR
-
17 Years Ago
I'm not sure if one of the "return alternate on null" settings would...
Greg McGuffey
-
17 Years Ago
Thanks! I used new byte[] {} in the alternate and that worked.
MarcoR
-
17 Years Ago
Cool!
Greg McGuffey
-
17 Years Ago
Hi Guys, FYI we use "return alternate on null> Nothing" for...
Peter Jones
-
17 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search