For Pete's sake, don't do things like that!
1) Do not concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Use Parametrized queries instead.
cmd.CommandText = "select*from tblInbound where consignmentNo=@CN";
cmd.Parameters.AddWithValue("@CN", textBox1.Text);
2) Don't use SELECT * FROM... it wastes bandwidth, and memory, particularly when one of the fields is an image. List only the fields you are going to use.
3) Don't ever use SqlDateReader as an array with a numeric index, unless the list of fields is very, very short, and specifically specified. 45 of them or more is just plain stupid. Use the name of the field instead - it makes your code more readable, and reliable. What happens to your code if someone decides next month that column 2 is not needed and deletes it from your database?
Fix that lot, and then fix your problem - which is that you have added a single line of code you do not need...
...get rid of the line:
mm.Write(imagedata, 0, imagedata.Length);