In my website, i want to accept photos from users(through HTML page) 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.

Recommended Answers

All 3 Replies

Use the Apache commons upload library to ease the task of image uploading. Once you get hold of the image, store it in the database as a BLOB (Binary Large Object). and retrieve it back as a stream of bytes which can be used for recreating the image. Maybe this article will get things moving for you.

Thank you.
Your reply was of great help to me.
Thanks again.

Glad I could help. :-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.