Hi Experts please help me to write code for this .
my requirement is ........
i have an user id and pwd and one image box and one upload button..and one text box
so what i want is when user login and upload image he can be able to upload an image of any size no limitation for size for any number of time and he can write some text upto 300 words only and and also upload vedio for 2 mins when he clicks on save button then including this text and image and vedio can be stored on server plz help me out im in very urgency .....
thanks in advance
siri
Loading


Dorababu MekaRank #457 · 5.5K reputationPosted Dec 28, 2012, 8:08 PM EST
siri38 reputationPosted Dec 29, 2012, 12:43 AM EST
siri38 reputationPosted Dec 29, 2012, 12:44 AM EST
Column name = ImagePath and datatype as Image
hmmm
siri38 reputationPosted Dec 29, 2012, 12:49 AM EST
there is an
user id == some value
pwd== some value
after clicking this
browse >and then
and click on save
tis is my requirement
Dorababu MekaRank #457 · 5.5K reputationPosted Dec 29, 2012, 1:01 AM EST
Dorababu MekaRank #457 · 5.5K reputationPosted Dec 29, 2012, 1:10 AM EST
http://csharpdotnetfreak.blogspot.com/2009/07/fileupload-control-save-images-database.html
siri38 reputationPosted Dec 29, 2012, 1:29 AM EST
as i mentioned in my previous post.........
i have an user id and pwd and one image box and one upload button..and one text box
so what i want is when user login and upload image, the image must display there in the form
(jus like we fill some application for an exam) when we upload an image and the vedio file , the image url and the image shuld display in the form itself and also in database and apart from this the user can able to upload an image of any size no limitation for size for any number of time and he can write some text upto 300 words only in text box and clik save button so that it can be save in database
Dorababu MekaRank #457 · 5.5K reputationPosted Dec 29, 2012, 1:37 AM EST
SqlConnection con = new SqlConnection();
con.ConnectionString = ConfigurationManager.ConnectionStrings ["ConnectionString"].ConnectionString;
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Your select command with condition";
cmd.CommandType = System.Data.CommandType.Text; cmd.Connection = con; SqlParameter ImageID = new SqlParameter ("@ID", System.Data.SqlDbType.Int); ImageID.Value = context.Request.QueryString["ID"]; cmd.Parameters.Add(ImageID); // con.Open();
SqlDataReader dReader = cmd.ExecuteReader();
dReader.Read();
context.Response.BinaryWrite((byte[])dReader["Image"]);
dReader.Close();
con.Close();
and your image url on your desired page should be
here in place of employeeid write yours if you have any
Still not clear post some images of your application what you are trying to do
Dorababu MekaRank #457 · 5.5K reputationPosted Dec 29, 2012, 1:39 AM EST
Dorababu MekaRank #457 · 5.5K reputationPosted Dec 29, 2012, 2:26 AM EST
Here is your code, if you are saving the image in same table means change the necessary where ever needed
// change the connection string and table name and columns names as per required
Your handle.ashx should be as follows here also change as per required