My code for inserting image in database is as follows:
MemoryStream ms =new MemoryStream();
byte[] PhotoByte=null;
PhotoByte=ms.ToArray();
pictureBox1.Image.Save
You should be using a parameterized query instead of concatenating a SQL string.
Apart from fixing the obvious SQL Injection vulnerability, this will enable you to properly insert an image into the database.
There are many questions and answers on how to insert into a SQL Server image/binary field - you should look at them.