I am in a serious trouble..Someone please help me..
Our team is currently building a web application which contains image upload module which I am resposible for coding. Image upload comes in place where user add his profile photo.
I just need to give the end user the option to upload a file which I already did .
Select a file:
<input type="file" name="first" />
<input type="submit" name="button" value="upload" />
Now what I want is the coding part to upload the file to a temperory folder in server(ofcourse I need to create a folder first) and I need to store the url for the data path in database.
I also need the coding to retrieve the url from the database and display the corresponding image to the end user like facebook do.
Anyone please help me...
Thanks in advance..Regards
What does your servlet currently do?
Are you using an existing mime-multipart package (like Apaches one)?
Will the image be stored in the database?
If so why have a temporary folder?
Why? Are you going to be keelhauled if you fail to deliver the code? Decapitated mayhap? Defenestrated? Filleted?
Originally Posted by naveenpaul1987
Can we watch?
Originally Posted by JosAH
Sure; show at eleven, popcorn and beer can be bought in the corner on your left side; don't throw anything towards the vict^H^H^H^Hparticipant and please don't touch anything while the rotating knives machine is operational; how many tickets do you want? enjoy your evening.
Originally Posted by DarrylBurke
When I search on google, I found two options.
First one is, You can store the image in database. But this seems to be a bad idea because user can upload image of any size
to the database. Since I am using MYSQL database, it is not practical.
Second option is upload the image to server and put the corresponding url in the database. Server will handle huge amount of data as compared to MYSQL database.
Why is saving the image in a MySQL database impractical?