using single file upload i got it.. to add multiple files i need yar...
protected void Button1_Click(object sender, EventArgs e)
{
int imagelen = FileUpload1.PostedFile.ContentLength;
byte[] picbyte = new byte[imagelen];
FileUpload1.PostedFile.InputStream.Read(picbyte, 0, imagelen);
SqlConnection conn = new SqlConnection("server=SRM02;database=image;integrated security=true");
try
{
conn.Open();
SqlCommand cmd = new SqlCommand("insert into Imagetable" +" (Image1,id) " +" values (@pic, @imageid)",conn);
cmd.Parameters.Add("pic", picbyte);
cmd.Parameters.Add("@imageid", TextBox1.Text);
cmd.ExecuteNonQuery();
}
finally
{
conn.Close();
}
}