This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You normally don't use JSF to store an image in a DB. You normally use JDBC for that.
If your actual problem is that you don't know how to upload a file (image) with JSF, then you should say that so. There are component libraries out for uploading files with JSF, for example Tomahawk t:inputFileUpload. Just get an InputStream of the uploaded file and persist it in the DB using JDBC's PreparedStatement#setBinaryStream().
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: store image in mysql using visual jsf in netbeans 6