DBNull

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Newbie19
    New Member
    • Jun 2007
    • 122

    DBNull

    I'm currently working in a database and pulling data off of of the db. When I am reading the contents of files, the DBNull error arrises. The data is in the type Byte[]. I'm unsure how to handle the DBNull.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Newbie19
    I'm currently working in a database and pulling data off of of the db. When I am reading the contents of files, the DBNull error arrises. The data is in the type Byte[]. I'm unsure how to handle the DBNull.
    Which database?

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      You need to check for the data using IS NULL before retriving.

      Comment

      Working...