title: Rendering images as a slideshow which are stored in the database as longblob
body: <p>We have developed a small web application using spring and hibernate.Our application has a functionality of uplodaing the images and videos and we are storing the images and videos in the database in longblob format.<br>
  We are trying to display these images as a slideshow using an already existing javascript based "Simple Controls Gallery" <a href="http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm</a> which is found on the internet.  </p>
  
  <p>I have tried to call a html page which will be redirected to a jsp page by the controller as follows :  </p>
  
  <pre><code>var Imagearray1 = [
              &lt;c:set var="count" value="0"/&gt; 
              &lt;c:set var="comma" value=","/&gt;
              &lt;c:forEach items="${imageList}" var="image" varStatus="loop"&gt;
              &lt;c:set var="count" value="${count + 1}"/&gt;
                [$.get('imagedisplay.html');,'http://','${image.imageTitle}','${image.imageDescription}']&lt;c:if test="${fn:length(imageList) != count}"&gt; &lt;c:out value="${comma}"/&gt; &lt;/c:if&gt;            
              &lt;/c:forEach&gt;
          ];
  </code></pre>
  
  <p>where imageList is the list of images from the database. You can see the actual code of Imagearray1 in the link that i mentioned.</p>
  
  <p>How can i display the images using this gallery ?(or) if there is any other way of displaying images as a slidehow please explain it to me.</p>