how we can resize image in jsp before uploading in database as a blob data.

thank you..

You get user data from JSP to servlet.
Servlet will take a job of getting image from user to server.
After that you run an method to resize image to what ever you need and pass this to database for safekeeping.
Obviosly this can be done with JSP too, but please lets use tools what they are designed to do not for what extra we can do with it. Use JSP for viewing content and servlet for business logic (in simple terms)

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.