if(oDataTable.Rows[0]["File"] != null) //byte array
{
}
File column in my table seems null. However when I try to check if it is null or not in the code part, it doesn't go to else part. Can someone tell me how to fix this?
I think you should check for DBNull with Convert.IsDBNull:
if(!Convert.IsDBNull(oDataTable.Rows[0]["File"]))
{
}
DBNullinstead ofnull? I would need to see more of your code to know for certain.