How to save photos accepted from user (through HTML form) to database?
-
In my website, i want to accept photos from users and save them to database(MS SQL) Can you please tell me, how can i do so? Also tell me how to retrieve those photos back from database to HTML page or JSP. Thank you.
-
Answer:
Save the photo files as files on the site. Save the file names in the database. To retrieve them, just look them up in the database and do whatever you're doing with the files (displaying them, sending them to the user). Saving the actual file content in the database is doable, but not a good idea - it's inefficient, for one thing. (We handle about 3 million graphic files on one of our sites - as files.)
nikki at Yahoo! Answers Visit the source
Related Q & A:
- How To Use the Graph API to Upload Photos to a user’s profile?Best solution by Stack Overflow
- How to display HTML data from database?Best solution by Stack Overflow
- How to save from DatagridView to Database VB.NET?Best solution by Stack Overflow
- How do I permanently block a user forever? I mean, find or enter the username, when the user isnt on my list?Best solution by Yahoo! Answers
- How did you get accepted into Brown University?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.