hi all,
i am trying to create a thubnail image and want to insert in a folder and path into database.. i uploaded image into folder but not able to create thumbnail from it
string s = @"~\uploads\" + FileUpload1.FileName;
FileUpload1.PostedFile.SaveAs(Server.MapPath(s));
SqlConnection cn = new SqlConnection("Server=praveen;Integrated Security=True;User Id=sa;Password=sa;Initial Catalog=banking");
string sql = "insert into products values('" + ddlist.SelectedItem.Value + "','" + name.Text + "','" + s + "','" + code.Text + "')";
SqlCommand cmd = new SqlCommand(sql, cn);
cn.Open();
SqlDataReader dtr;
dtr = cmd.ExecuteReader();
iam uploading into uploads folder and wanted to upload thumbnail into thumb folder which is in uploads folder itself.. i tried various scripts found on net but nothing worked..
can anybody help me please..
thank you