What exactly is 'data' before you save? If you query the database and get that record, what is the value in that column?

Also, if you have control of the database, you should be using type 'varbinary' rather than 'image'.