Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Bangal

  1. Bangal

    display of picture from database using JSP

    Yes, it is in the WEB-INF/Classes folder. But the error still remains the same.
  2. Bangal

    display of picture from database using JSP

    All along, I had a folder called FYP(FileSystem). And in it i had alot of JSP files.. I only created a folder called sedj and copied the two files inside. Thus, it created an error. Now, I took it out so that there is no more folder. The error message now have only...
  3. Bangal

    display of picture from database using JSP

    Do I execute the servlet itself or use another JSP to call it out? And if I use jsp to call it out, how do i do it? using <a href="http://localhost:8081/servlet/ImageServlet" content="image/gif">Start Servlet</a> ? I'm using SunONE Studio 4 by the way. At the Output Window, there is an error...
  4. Bangal

    display of picture from database using JSP

    I only created a folder where there is no WEB-INF folder. I created the jsp and the ImageServlet.class. But there are extra files beside there. These included: ImageServlet (Java(tm) File (Forte(tm) For Java(tm))) ImgeServlet.class ImageServlet.java~ .nbattrs displayPicture.jsp So if I used the...
  5. Bangal

    display of picture from database using JSP

    Thanks for sedj for assuring me. I have tried to compile the whole servlet and it managed to compile successfully. How do I ensure that it is the right URL? Its the format of <embed src = "http://localhost:8080/servlet/ImageServlet" content="image/gif"> hostname: localhost port: 8080 (but when...
  6. Bangal

    display of picture from database using JSP

    But I only need to store less than 100 images. What I'm trying now is to upload the picture into a folder in the server while saving the link into the database. Thus, the displaying will be much more easier as its a direct link. In this way, I have to give up the UploadBean at javazoom.net and...
  7. Bangal

    display of picture from database using JSP

    After putting the codes and after running, there is a small square there. But the square is empty. No picture comes out. Is it a better idea to save the file to disk during upload and store the link in the database. And when I need to display it, I just take the link out from the database and...
  8. Bangal

    display of picture from database using JSP

    Is writing a JSP and a servlet similar? I have never written servlets. My purpose is just to display a picture. However, its the first time I am trying it. What actually do we have to do in order to display the picture from the database? Query Codes String strSQL = "SELECT binaryfile FROM...
  9. Bangal

    display of picture from database using JSP

    I need to display a picture which I have saved in a database as a BLOB. Can anyone tell me if these codes are done correctly? Now, when I run, I get no errors however, its just a blank page. How do I allow the user to see my picture file? Im using mySQL server. Program is Sun ONE Studio (JSP)...

Part and Inventory Search

Back
Top