Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to update a image using servlet?

 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am new in image uploading and updating I uploaded an images in my project and want to update a image usingservlet using id which is PK in society table.
But I am not able to get it. Please help me.

this is my code for uploading image:


thanks in advanc.

 
jeya velan
Greenhorn
Posts: 9
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not understand what your problem is.
If getting the generated PK is the problem, than you can use the below code if you are using Prepared Statement and
your database supports identity columns
 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to say that this above code for image uploading when I create a society (means residential or commercial area)form but when I want to update this form then what is the process use for updating the only images.

I updated all the form field in one servlet and want to update two images in a seprate servlet because I am using two forms in one jsp........
this is my project task flow when I searching societies then it will show a Update button onclick this button will go on edit_society based on society id e.g. SOC000001 and so on after then this page action will go for UpdateImageSociety servlet which is below after this jsp.

this is the jsp page...





and now the edit_society2.jsp




This is the servlet for all text field updation..



table is here...


So this the flow but I am not able to update only images
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram Dev chandran,
Your post was moved to a new topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic