IMG SRC="???" I've read old threads...

Hello,
I've spent 2 days pulling my hair out trying to get a servlet to present an image in html the same old boring easy way you would do it in a web page. I have searched this forum and read many threads, trying what each of them suggested, and uniformly failing to get anything going. In a last ditch effort, I am going to bug you folks with what is obviously an old problem. I certainly appreciate any help. By the way, I am a complete newbie to web programming, just in case that wasn't obvious ;)
Directory Structure
_________ROOT___________
| | |
WEB-INF PotteryPics index.html
| |
| _________
| | |
| Pottery Utility
|
| | |
classes lib web.xml
| |
| catalina-root.jar
|
org
|
apache
|
jsp
In total desperation I tried the following code just to see if it would work on the server machine. It did indeed produce a perfect looking page, but, of course, it failed when accessed from the web:
"<IMG SRC=\"C:/jakarta-tomcat-5.0.24/webapps/ROOT/PotteryPics/Pottery/Picture.jpg\">"
This also worked:
"<IMG SRC=\"C:\\jakarta-tomcat-5.0.24\\webapps\\ROOT\\PotteryPics\\Pottery\\ Picture.jpg\">"
This, however, and MANY other attempts similar to it uniformly fail:
"<IMG SRC=\"../PotteryPics/Pottery/Picture.jpg\">"
I'll refrain from saying anything more for now...no sense in repeating everything I tried with moving directories etc.
Thanks for you time,
Keith Myers

Non-mangled version ( I hope )
                                             _________ROOT___________
                                            |          |             |
                                        WEB-INF    PotteryPics    index.html
                                            |          |
                                            |       _________
                                            |      |         |
                                            |   Pottery    Utility
                                            |
                                   |        |          |
                               classes     lib      web.xml
                                   |        |
                                   |    catalina-root.jar
                                   |
                                  org
                                   |
                                apache
                                   |
                                  jsp

Similar Messages

  • I need to transfer playlists from my old iphone into itunes so that I can then add them to my new iphone 6.  However, none of the playlists on my iphone appear when I connect to my macbook.  I have read other threads but have not found answer.  help!

    I am a group exercise instructor and rely heavily on my playlists.  My old phone is an iphone 4s and I just bought an Iphone 6.  I also have a macbook where I keep my itunes account, but I create all my playlists on my phone.  I need to transfer those playlists from my old iphone into itunes in my computer so that I can then add them to my new iphone 6.  However, none of the playlists on my iphone appear when I connect to my macbook.  I have read other threads where the suggestion was to attach the old phone to itunes, find the phone in itunes and click the little arrow to the left to show the playlists.  Then right click on the playlist and export it, saving it to the desktop, to then import it into itunes.  However, in my case, the playlists do not show up when the phone is connected to itunes.  I have clicked on the little arrow and all I get is "music", "purchased", etc., but none of my playlists.   I'm sure some years back I probably deleted something in my itunes library and now none of my playlists show.  Please help me.  I would hate to have to recreate all of my playlists.  Thank you!

    I know it sounds weird, and that is the reason I posted my question.  Because my case is not like all the ones I've found online and it's confusing.  I added a screen capture of my itunes with my old iphone (the one that houses my playlists) connected to it.
    My playlists "ARE"  in my iphone 4s.  They are still there even though they do not show up when I plug in to itunes in my computer. 
    When connecting my phone to itunes on my macbook, the playlists do not appear anywhere in itunes.  I have found my connected iphone icon, I have clicked on the arrow next to it and it does pull up the standard lists that come with the iphone/itunes:  Music, Movies, TV shows, books.  That's it! below that is "Genius" and below "Geniuns" is "PLAYLISTS"  but the only playlist of mine that shows there is one that I created several years back titled "90's music" and that one I created it on my computer, not my phone.  Under "90's music" there are also other standard playlists that itunes automatically adds.
    Does anyone else have this issue or know how to get around this.  I am starting to think that I am going to have to recreate these lists on my computer

  • What syntax should be used in jspx for img src= c:out value="${}" /

    Dear Friend If I query in a database and the database return a url and with this url  I like to generate an image in jspx.
    *The syntax work ok with the jsp <img src=<c:out value="${abc.xyz}" />*
    *But with jspx it shows syntax error of < What you people recommend for it.*

    I stored all pix in my Tomcat web server where the url of them is as
    http://localhost:8080/pix/anna.jpg etc.
    and I stored the same url in the database table.
    <?xml version="1.0"?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:sql="http://java.sun.com/jstl/sql"
    version="1.2">
    <jsp:directive.page contentType="text/html"/>
    <jsp:directive.page import="java.util."/>
    <jsp:directive.page import="java.text."/>
    <html>
    <head>
    <title>Snap Diary</title>
    </head>
    <body bgcolor="white">
    <sql:query var="img">
    SELECT snap FROM snap_pix
    WHERE name =?
    <sql:param value="${param.name}" />
    </sql:query>
    <img src="${img.snap}" />
    <p>
    <form action="recentsnap.jsp" method="post" >
    <input type="submit" value=" Recent Snap " />
    </form>
    <form action="oldsnap.jsp" method="post" >
    <input type="submit" value="Old Snap" />
    </form>
    </p>
    </body>
    </html>
    </jsp:root>
    the right click on image show this url http://localhost:8080/Snap_Diary/${img.snap}
    where the actual folder in which I stored snap is http://localhost:8080/pix/ and the url which I stored in the database
    is also as http://localhost:8080/pix/anna.jpg etc...
    Query should return the value as http://localhost:8080/pix/anna.jpg not as http://localhost:8080/Snap_Diary/${img.snap}.

  • I bought my mac book pro 4 years ago and it is really slow now. I have downloaded Etrecheck after reading some threads on here and here are the results

    I got my MacBook Pro 4 years ago and its getting really slow.
    After reading dome threads on this site i downloaded Etrecheck and here are the results.
    Any help would be greatly appreciated.
    EtreCheck version: 2.1.8 (121)
    Report generated 21 March 2015 9:41:28 PM AEDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 814
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed

    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 814
    ***Hardware looks fine
    ***Increasing the RAM can always help with slowness issues
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    ***Looks fine
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    ***You are running an Operating system over 4 years old but it shouldn't effect the speed of your computer
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    ***Looks fine
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    ***Looks fine
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    ***I'm honestly not super familiar with most kernal extensions but I do see you have MacKeeper running which can slow the computer down
    ****** This next section talks about Launch agents and Launch Daemons.
    ****Something to keep in mind is that when you first get the computer that all of these folders are empty and the files in them are all third party.
    ****If you want to see if the system runs better without them Shut the computer down and turn it on while holding the shift key
    ****This will put the computer into safemode which turns off third party files and extensions and does not let any launch agent/daemons files run.
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    ***This is the root launch agent folder
    ***I'd remove all but the first three
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    ***This is the root Launch Daemons folder
    ***I'd only keep com.adobe.fpsaud.plist and com.microsfot.office.licensing.helper.plist all the others will reinstall them selves if needed.
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    ***This is your users Launch Agent folder
    ***I'd remove everything here
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    ***The first extension in safari is adware and can be uninstalled
    ***The second one is a video web player and you could probably remove that as well but it wont effect your speed
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed
    ***Everything else seems fine

  • I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    Hi Newbie111
    I see that you are unable to scan with the Photosmart 1315.
    What driver are you using?
    The driver listed in the url below is a basic print driver that will allow you to print only.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ps242muc&c c=us&dlc=en&lc=en&os=1006&product=61956&sw_lang=
    You can try using the apple drivers in the url below.
    http://support.apple.com/kb/DL907
    If you have any further issues please let me know.

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • Help needed with IMG SRC

    Can anyone please help me with this: I have created my own website on IWeb and now I want to use some of my banners on other websites. Problem is: there is something wrong when I fill in the img src code. The banner does not appear, only a question mark. I do not know the answer to that: am I using the wrong URL code or is it something else? I have placed my banners in the public folder, but that makes no difference. Thank you in advance for your help.

    Welcome to the discussions. Assuming your image is in the top level of your iDisk's Public folder, the HTML should look similar to this:
    <IMG SRC="http://idisk.me.com/membername-Public/Image.jpg"/>
    ...If the above doesn't help, post back here with the HTML you're using. You can convert it to character entities for display in this forum via _this site_.

  • ORA-29400: data cartridge error/IMG-00703: unable to read image data error

    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
    ORA-29400: data cartridge error
    IMG-00703: unable to read image data
    ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
    ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 37
    ORA-06512: at "ORDSYS.ORDIMAGE", line 927
    is raised when the following trigger is processing certain JPGs (example). Other JPGs are handled as expected:
    create or replace trigger photo_size_trg
    before insert or update on photos
    for each row
    declare
      photo_width integer;
    begin
      -- Check to see if the new photograph is different from the old one...      --
      if dbms_lob.compare(:old.photo, :new.photo) != 0
      then
        -- ...if so, check to see if it's wider than the desired 250 pixel        --
        -- maximum...                                                             --
        photo_width := to_number(ordImage.getMetadata(:new.photo)(1).extract('/ordImageAttributes/width/text()').getStringVal());
        if photo_width > 250
        then
          -- ...and if so, apply an image transform that will resize to the photo --
          -- to a maximum of 250 pixels wide, keeping the original aspect ratio.  --
          -- There doesn't seem to be an elegant way of specifying a constraint   --
          -- in one dimension like this, so the height is specifed as a large     --
          -- enough value to cover all practical contingencies.                   --
          ordImage.process(:new.photo, 'maxScale=250 10000');
        end if;
      end if;
    end;Any thoughts/suggestions?

    hi,
    I am getting following error,kindly help me out to rectify this ..
    thank you
    ORA-29400: data cartridge error
    ORA-00600: internal error code, arguments: [kokbCollTerminate], [13], [], [], [], [], [], []

  • Local "img src" in JComboBox

    I've got a JComboBox where one of the elements are added with this text:
    "<html><body style=\"padding:0px;margins:0px;\"><table style=\"padding:0px;margins:0px;\"><tr style=\"padding:0px;margins:0px;\"><td style=\"width:20px;height:20px;vertical-align:middle;padding:0px;margins:0px;\"><img src=\"resources/image.png\"></td><td style=\"height:20px;vertical-align:middle;padding:0px;margins:0px;\"><b> MANAGER</b></td></tr></table></body></html>"How do I get this to work for local folders? I've tried absolute paths, I've tried relative paths (like above), but I just can't seem to get it to work. Internet URLs do work though, but they seem to make the JComboBox lag.
    Thanks in advance!

    Someone has a solution in this post
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=290240

  • Using multiple img src / with htmlText --display problem

    I need help.
    I am using multiple <img src /> tag with htmlText and
    pictures displays in layers(overlay)?
    html_txt.html = true;
    html_txt.htmlText = "text<br><img src = '
    http://picture1.jpg 'width='500'
    height='491' hspace='0' /><br>more text<br><img
    src = '
    http://picture2.jpg' width='299'
    height='612' hspace='101' ><br>end with text";
    Is there any way to refresh text field when pictures are
    fully loaded so it will display like regular html page?
    this is flash version, evrything is shown but it is not
    right.
    http://www.sosui.jp/flash/test/v001/pages/home/homeBlogV002.swf
    I want to show them like this page.
    http://sosui.jp/flash/test/v001/pages/home/blog.html
    I tried onEnterFrame but pictures will not show. I think it
    is because it is trying to load pictures everytime. So I cannot use
    onEnterFrame, i need other way to refresh text field.
    Please help me. you might of guessed I am not an English
    speaker, so my English might be little off.
    Thank you.

    does anybody know anything? how long do i need to wait to see
    if someone replies? I just need to know if it is possible or not.

  • Can't find my old thread

    Hi guys,
    I'm looking ofr my old thread in this forum unfortunatelly i cant find my old post. it display only the last 60 days that i have posted. any idea guys. thanks.

    Hi,
    As mentioned, this is completely by design (I don't get it either).
    I've started a thread in the Suggestions forum requesting that this be returned to us, you may want to add your voice there as well:
    http://social.technet.microsoft.com/Forums/en-US/597b4a9d-1ca8-49be-9aac-dbaf0419bafc/my-threads-add-the-option-to-show-over-60-days?forum=suggest
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Old threads from last years appear in the iPad forum

    When viewing the iPad forum on the iPad old threads from last year populate the threads listings. I used different browsers on the iPad besides Safari (both logged in and out) and it still happens. I haven't tried using Safari on OSX . Can someone please check this out using the iPad and OSX to see if they are experiencing the same thing. This started happening yesterday...

    +Watch the movie CATCH 22 for the definition of what normal means... there isn't any.+
    I will try to find it; your comment made me curious enough to google and now I know why no one has ever referred to me as being "normal".....
    +Definitions of normal on the Web:+
    +* conforming with or constituting a norm or standard or level or type or social norm; not abnormal; "serve wine at normal room temperature"; "normal diplomatic relations"; "normal working hours"; "normal word order"; "normal curiosity"; "the normal course of events"+
    +* in accordance with scientific laws+
    +* +*being approximately average or within certain limits in e.g. intelligence and development;*+ "a perfectly normal child"; "of normal intelligence"; "the most normal person I've ever met"+
    +* convention: something regarded as a normative example; "the convention of not naming the main character"; "violence is the rule not the exception"; "his formula for impressing visitors"+
    +* forming a right angle+

  • Can't read old mail after new Tiger install

    I recently installed Tiger (and archived my old system) as an upgrade from 10.3.9. Since then, I can't read old messages in Mail. The original messages are deleted from my isp server once the messages are downloaded by Mail. When I open any message in Mail received before I insttalled Tiger I see, where one would normally see the body of the message, the following:
    "The message from [email protected] concerning “Your receipt from Apple Store, xxxxx” has not been downloaded from the server. You need to take this account online in order to download it."
    When I attempt to reply to one of these messages, I can't type anything into the body of the message.
    I am online when this happens. I see no "icons" (ie an lightening bolt) next to my inbox; everything appears to be normal. I, also, have approximately 20 gb of free space on my hard drive.
    Any suggestions as to how I might retrieve or open old messages? Thanks.

    The conversion from Mail 1.x to Mail 2.x is broken. Take a look at the following thread to better understand the problem:
    Help! "You need to take this account online in order to download it."
    More specifically, if this is a POP account, the following procedure should allow you to fix the Inbox problem. A similar procedure should allow you to fix other mailboxes that might also be affected:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to fix the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    3. Create a new folder on the Desktop and name it however you wish (e.g. Inbox Old). It doesn’t need to have an .mbox extension.
    4. In the Finder, go to ~/Library/Mail/POP-username@mailserver/INBOX.mbox/.
    5. Move the files mbox and Incoming_Mail out of INBOX.mbox, into the Inbox Old folder just created on the Desktop. These files contain all the messages that were in the mailbox before the upgrade to Tiger, and maybe even some messages that had been deleted. mbox is the most important. Incoming_Mail may or may not be present.
    6. Move any strangely-named Messages-T0x... folders to the Desktop (not into the Inbox Old folder). These folders are to be deleted after fixing the problem. They are temporary folders created during an import or an indexing process, and Mail should have deleted them when done. Their presence is a clear indication that something didn’t work as expected. If you’ve been using Mail after the conversion and have already tried to fix the problem by rebuilding the mailbox or something like that, they might contain messages that are neither in Messages proper nor in the mbox file, so keep them around until the problem is fixed.
    7. Move everything else within INBOX.mbox, except the Messages folder, to the Trash.
    The result of the above should be that INBOX.mbox contains the proper Messages folder only, and the Inbox Old folder on the Desktop contains the mbox and Incoming_Mail (if it exists) files only. Now, proceed as follows:
    8. Open Mail.
    9. The account’s Inbox should properly display in Mail as many messages as *.emlx files are in ~/Library/Mail/POP-username@mailserver/INBOX.mbox/Messages/. If that’s not the case, select the mailbox in Mail and do Mailbox > Rebuild.
    10. In Mail, do File > Import Mailboxes, choose Other as the data format, and follow the instructions to import the Inbox Old folder that’s on the Desktop.
    As a result of doing the above, some messages may be duplicated now. Andreas Amann’s Mail Scripts has a Remove Duplicates script that you may find useful.
    Do with the imported mail whatever you wish. You may move the messages anywhere you want and get rid of the imported mailboxes afterwards.
    If all is well and you don’t miss anything, the files on the Desktop can be deleted, although you may want to keep them for a while, just in case.
    Take a look at the following article (also referenced in the thread I mentioned at the beginning of this post) to learn what you might have done before upgrading to minimize the risk of this happening, and what you may do after fixing the problem to avoid similar issues from happening in the future. DON’T do now what the article suggests, though, as that would make things worse in the current situation:
    Overstuffed mailbox is unexpectedly empty
    Ask for any clarifications or if you need further assistance.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Can't the old threads closed automatically?

    Hi,
    I am just thinking why can't the old threads closed automatically?
    There are lot of old threads which might got resolved OR might not have proper responses, appearing in every forum.
    If we have a functionality which close the thread with a tag "Expired" after 5 days (from the query raised date), that can help all of the volunteers.
    I do not see any benefit in keeping those threads active!
    Regards,
    Nick Loy

    If you work in a bigger company, then 5 days are almost nothing.
    SAP has such a nice CHarm process to make the environment secure, that means you cant even start developing something without having an approved change request. Not to talk about testing.
    Of course there are discussions which can be be closed immediately, others need weeks, some months.  I still get some helpful and correct answer points from answers I had given years ago.
    Without the "automatic" closure, you actually have evidence if the user takes care about his stuff or not, the auto closure makes this unresponsive user just look equal to someone who cares. Even more bad.  There is no real filter function in SCN to search only for answered questions, and you would miss a lot answered discussions which are not techncially marked answered.
    I actually had some spare time last weekend, and I reviewed ANY discussions posted between May 15 and May 30 in the MM forum having an answer and have not been closed  . I wrote a single direct message and included all OPs into the distribution list:
    You posted a question in SCN MM forum in last week of May. This question is still open despite of many answers. Is the issue really open and you don't follow up on it? If not open then please close your discussion. If you found the solution yourself, then share it. Check out the blog post 'How to close a discussion and why' in SCN.
    Yes I had some good responses to the direct message. Yes some of them have closed their discussion from May, quite a few posted a solution. Some do not understand at all what "correct answer" actually means and marked their own "thank you" as correct answer. And some others which are already known as careless did neither respond nor close any of their discussions, they are just going on and posting the next question.

  • I get the following error and the old thread on this did not solve my problem. Does anyone have an idea how to fix it. The error is "an error occured sending command to application"

    When I open a link from Microsoft outlook I get the following error
    "An error occured sending command to application" The old thread on this does not help and it is closed.
    == This happened ==
    Every time Firefox opened

    Hello Anonymous.
    You will need to contact Microsoft for support on Outlook.

Maybe you are looking for