This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Saving div area in mysql database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Saving div area in mysql database" Watch "Saving div area in mysql database" New topic
Author

Saving div area in mysql database

pravin rasal
Ranch Hand

Joined: Jul 27, 2011
Posts: 63
hi,

I developed one web application using spring and JavaScript(j query) and I have created div in JavaScript and on that div I have created more than one images and when I click on save button i want to save all images on to the database and when I retrieve that image from database as it is again displayed on that div.
So how to get all images from that div and store into the database and retrieve again.......
Palash Nandi
Ranch Hand

Joined: Jul 09, 2009
Posts: 34
pravin rasal wrote: i want to save all images on to the database and when I retrieve that image from database as it is again displayed on that div.
So how to get all images from that div and store into the database and retrieve again.......


I think images are never saved in the Database, but in a shared folder or in the server. Though their path/names may be saved in the database.

If that is how you are using them then, you just need to save the paths/names of images which are string and generate html code using JavaScript in the DIV tag. ( If you write the proper html code then, the browser will automatically load the images without reloading the page ).



A TubeBulb May light slowely... But it lights the Brightest..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Saving div area in mysql database
 
Similar Threads
Binary to string conversion
Selection of datatype for storing images
Displaying images on JSP page
How to know img tag src attribute loaded completely by action
image store and retrieve