Pradyut
http://pradyut.tk/
Bear Bibeault wrote:Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking thebutton on your post.
Pradyut
http://pradyut.tk/
Bauke Scholtz wrote:Get an InputStream from it and save it in DB using PreparedStatement#setBinaryStream().
After all it look like that your problem is JDBC related rather than FileUpload related.
That said, is that code written in a JSP or a Servlet? To start, the code doesn't look good. Java code belongs in a Servlet and HTML belongs in a JSP.
Pradyut
http://pradyut.tk/
Pradyut Bhattacharya wrote:
when i do so(click edit buttton) the editor is filled with (&)lt and (&)gt..
original message should always be stored and any modification should be done on the presentation layer....
thats a bug for javaranch....
Ulf Dittmer wrote:
Pradyut Bhattacharya wrote:
when i do so(click edit buttton) the editor is filled with (&)lt and (&)gt..
original message should always be stored and any modification should be done on the presentation layer....
thats a bug for javaranch....
That's not a bug, and it works fine. Perhaps you are not familiar with HTML entities. Have you tried editing your post to see what happens?
Pradyut
http://pradyut.tk/
Bauke Scholtz wrote:Get an InputStream from it and save it in DB using PreparedStatement#setBinaryStream().
After all it look like that your problem is JDBC related rather than FileUpload related.
That said, is that code written in a JSP or a Servlet? To start, the code doesn't look good. Java code belongs in a Servlet and HTML belongs in a JSP.
Pradyut
http://pradyut.tk/
Ben Souther wrote:FileItem has both a getInputStream method and a getSize method.
Pradyut
http://pradyut.tk/