Hello everyone, I'm trying to storing the user profile image into database.....that's why I'm develop the html code for browse and taking user image path into text field in html...NOW I'm stuct into that user path how can retrieve from html code to java code for Storing that path image file into DB........Please help me out of this......
Sushant Gandhi wrote:NOW I'm stuct into that user path how can retrieve from html code to java code for Storing that path image file into DB........Please help me out of this......
We'd like to, but I, for one, still don't know what you're asking:
Do you not know what happens when you hit the 'submit' button?
Do you not know how to extract that info from the Post? You certainly appear to have written several methods for it.
I think it would be much better if you supplied the relevant code from your 'bn2' object (please don't just dump it all on us).
Also: if that is where your problem is, my advice would be to forget all about the database access for now.
Run your program and print out the values returned by your web page as Strings, and make absolutely sure that they are exactly what you want every single time you run it before you write one line of database access.
Alternatively, if you know that 'bn2' is NOT the cause of your problems, print out the values that are being substituted into your PreparedStatement before you run it.
Programming (and testing) work much better if you deal with one thing at a time.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here