 <p>I was having the same problem, that is, the first time the image was saved correctly on the database side, but if subsequently validation failed and then I tried to save the image again after entering valid data I would get <code>0x</code> in the image column. To solve that I did what <a href="http://stackoverflow.com/questions/14943333/cant-save-binary-data-to-database-in-c-sharp#comment21040844_14943333">@Ann L.</a> said:</p> <pre><code>byte[] photo = null; if(model.Photo != null) { var stream = model.Photo.InputStream; stream.Position = 0; using(BinaryReader br = new BinaryReader(model.Photo.InputStream)) { photo = br.ReadBytes(model.Photo.ContentLength); } } </code></pre>