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 MekaPosted Dec 29, 2012, 7:26 AM
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
Dorababu MekaPosted Dec 29, 2012, 6:39 AM
Dorababu MekaPosted Dec 29, 2012, 6:37 AM
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
siriPosted Dec 29, 2012, 6:29 AM
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 MekaPosted Dec 29, 2012, 6:10 AM
http://csharpdotnetfreak.blogspot.com/2009/07/fileupload-control-save-images-database.html
Dorababu MekaPosted Dec 29, 2012, 6:01 AM
siriPosted Dec 29, 2012, 5:49 AM
there is an
user id == some value
pwd== some value
after clicking this
browse >and then
and click on save
tis is my requirement
siriPosted Dec 29, 2012, 5:44 AM
Column name = ImagePath and datatype as Image
hmmm
siriPosted Dec 29, 2012, 5:43 AM
Dorababu MekaPosted Dec 29, 2012, 1:08 AM