Its not easy to say what's going wrong without taking more snaps of your code.
I've some question what is imagedata and what type of formating you are using to store image in database.
As I am assuming you are assigning BLOB formated values to imagedata to store images in database.
if yes then assign two different value named imagedata1 and imagdata2 which will store
byte[]
value differently for each. and then use given code
byte[] imagedata1 = getimagedata as byte formated for image1
byte[] imagedata2 = getimagedata as byte formated for image2
and then use
SqlCom.Parameters.Add(new SqlParameter("@ImageData1", (object)imagedata1));
SqlCom.Parameters.Add(new SqlParameter("@ImageData2", (object)imagedata2));