In this, My Dataset is Null. Please help me in this topic.
Error in Insert Images into database in ASP.NET
Sir, I am in the midst of a Image inserting problem. While I try to insert image into database, I getting an error:-

In this, My Dataset is Null. Please help me in this topic.
In this, My Dataset is Null. Please help me in this topic.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Dec 17, 2013, 2:02 PM EST
cmd.Parameters["@Photo"].Value = filename;
to:
cmd.Parameters["@Photo"].Value = FUP.FileBytes;