Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if(oDataTable.Rows[0]["File"] != null) //byte array { }
テーブルのファイル列が null のようです。ただし、コード部分でnullかどうかを確認しようとすると、else部分には行きません。誰かがこれを修正する方法を教えてもらえますか?
Convert.IsDBNullで DBNull を確認する必要があると思います:
if(!Convert.IsDBNull(oDataTable.Rows[0]["File"])) { }