Thank You.. The Code was very helpfull thankx alot .. i have one thing to ask please explain the purpose of byte[] here and how to save it in database .. i tried but it show System.Byte[] in the field ..
cn.Open();
cmd = new SqlCommand("INSERT INTO final(FileName,FilePath)VALUES('" +fileName+ "','" + byteData+"')", cn);
cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Data Inserted");
str.Append(fileName + Environment.NewLine);