Problem finding image

Hi
I want to add an image to my portalcomponent that I have developed in Eclipse. I put the image in the images folder of the project. Add the code to the JSP:
<hbj:form id="myFormId" >
  <% String ImageURL = componentRequest.getPublicResourcePath() + "/images/logo.gif"; %>
  <hbj:image id="Logo" alt="Image not found" src=" <%=ImageURL%> "  />
   <br>
  </hbj:form>
This according to the example that can be found in the portal 6.
Deploy the component to the portal.
Result: image is not displayed, "image not found text" is displayed. When I check on the properties and the URL address it shows:
E:\usr\sap\DP1\DVEBMGS00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\myproject/images/logo.gif
I've checked that the image is present on the folder, it's ok.
Any ideas ?
Best regards.

<b>Fix your code to following. Replace publicResourcePath with getWebResourcePath</b>
Let say images are stored in dist->images folder then your jsp will the have following code.
<% String image = componentRequest.getWebResourcePath() + "/images/image.gif"; %>
<img src="<%=image%>">

Similar Messages

  • Hello.can anyone help me plz i have problem with my macbook air i can't find image capture.

    hello.can anyone help me plz i have problem with my macbook air i can't find image capture. there is nothing in progrem can i reinstall that progrem and how?thanks

    If you can't find it in your applications folder you will need to reinstall your Mac OS X. Take a look at this link, https://discussions.apple.com/message/16478873#16478873

  • Problem with images opened in Photoshop CS 5

    Hi, I have a problem with images that I open in Photoshop CS 5. F. ex. I opened
    the following image:
    The image appears with a purple color in Photoshop. If I hover over the image
    with a tool like lasso, it temporarily regains it´s original color. The image mode is RGB Color, 8 Bits/Channel.
    I resetted the start settings of Photoshop with the CTRL-Shift-Alt-combination, which had no effect.

    The confusion arises from the imprecise error message in the Preferences > Performance dialog box, to wit:
    OK, that seems to be open to misunderstanding indeed.
    The video card: Citrix Systems Inc. Display Driver.
    Could not find a list for CS6 specifically, but the card may fall short.
    http://helpx.adobe.com/photoshop/kb/tested-video-cards-photoshop-cs5.html
    If I invoke View > Proof Colors, the only thing that changes is that the text in the brackets
    Also if you set View > Proof Setup to something different?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Lion 10.7.4 Console: Could not find image named 'ForwardArrow'.

    I found following message presented in syslog since today evening, however, the system is running fine so far.
    12-5-22 下午10:25:44.345 Console: Could not find image named 'BackArrow'.
    12-5-22 下午10:25:44.345 Console: Could not find image named 'ForwardArrow'.
    could someone to explain what was caused this error message? and how can I solve the problem

    It could mean that these two files are missing from the Console.app, where it should go into the folder Resources of the folder Contents. For some reasons, they don't seem to get installed with Lion under certain circumstances.
    Right-click Console.app (in the Applications/Utilties folder) and open those folders, then copy the two files BackArrow.png and ForwardArrow.png into the Resources folder).
    On my machines, this helped the messages go away (end even stopped some sporadic freezing :-)
    I just took the corresponding files from the Console.app of my previous Snow Leopard installation (same place).
    HTH

  • Finding image in jar file

    This took me by surprise:
    I assumed that JVM would find image files, e.g. used in (JFrame).setIconImage(img) when these images are inside a jar file with the same path. I am using something like:
    Image   icon=jframe.getToolkit().getImage(img_path);what works when running JVM with class files and images in directories, but not when in jar file. img_path is relative. Classes will be found as expected, but not the image files!
    Do I do something wrong?
    Thomas
    Edited by: ThomasH_usually on Oct 1, 2008 11:48 AM

    I encountered this same problem before, whereby I wanted to be able to run my code from within an IDE (find image files from the file system) for development, and also to be able to run my code from within an executable jar (find image files from inside the jar) for release. I used the following utility method to get an image URL:
    public static URL getImageUrl(String fileName)
        // try to get the URL as a system resource
        URL url = ClassLoader.getSystemResource(fileName);
        if (url == null)
            // try to get the URL directly from the filename
            try
                url = new URL("file:" + fileName);
            catch (Exception e)
        return url;
    }You can then use the resulting URL instead of the image path, in your case as follows:
    Image   icon=jframe.getToolkit().getImage(Utils.getImageUrl(img_path));Paul.

  • Finding images with keyword tags in PE 12 Organizer

    I am experiencing difficulties while finding images with keyword tags.
    I am using the Organizer of Photoshop Element 12 (French version) and I think I follow the procedure described in “ADOBE ELEMENTS ORGANIZER Help and tutorials” (page 168 in the English version or alternatively 150 in the French one), i.e. :
    In the Keyword Tags panel, I click the ">" symbol of the keyword of which I want to know the relevant images
    Whatever the search option (Select either Hide Best Match Results Show/Hide Close Match Results, or Show/Hide Results That Do Not Match), I am not able to select and show only the Best Match Results.
    Please note also that the Tip
    To automatically display close matches after a search, choose Edit > Preferences > General, or Adobe Elements Organizer 11 > Preferences > General, and select Show Closely Matching Sets For Searches, and then click OK.
    does not seem to work with Adobe Elements Organizer 12

    Thks
    You are right, my problem is to select only the close matches.
    Based on your comment, I am afraid it’s one of the recurring problem in PE whatever the version (PE11 or PE12)
    De : MichelBParis 
    Envoyé : vendredi 30 mai 2014 08:40
    À : Michel ROUSSEAU
    Objet :  Finding images with keyword tags in PE 12 Organizer
    Finding images with keyword tags in PE 12 Organizer
    created by MichelBParis <https://forums.adobe.com/people/MichelBParis>  in Photoshop Elements - View the full discussion <https://forums.adobe.com/message/6420729#6420729>

  • IOException: Problem loading image

    Hi foreros
    What could be the reason behind an error like this IOException: Problem loading image except it cannot find the jar path for the images?
    Regards
    Tizha

    Without more information, I'd say there's not enough available RAM to load the image.

  • Problem loading images - please help

    Hi,
    I have a slight problem loading images. I'm using netbeans 5.0 and have a few packages setup in a project called Maths. In a package called LineConnection theres a class that needs to read an image and display it on screen. To load the image I use:
    URL url = getClass().getResource("fraction/pic1.png");
    Image img1 = Toolkit.getDefaultToolkit().getImage(url);This loads the image and I can display it on screen fine.
    The problem is that the folder fractions with the images in HAS to be located within the Maths/build/class/LineConnection folder otherwise it wont load the image and I get a null pointer exception.
    I want to be able to have the folder containing the images in folder Maths so that it's one folder above the src folder. But if I put it here (or anywhere else) the images can't be found and loaded.
    Could someone tell me why the images can only be found if they're within the build folder because it's causing me some problems when I try to create an executable JAR.
    Cheers

    I've used:
    URL url = ImageHandler.class.getResource("fractions/q0.png");               
    System.out.println("URL = " + url);to determine whether the file is found.
    If I put the file in the folder build/classes/LineConection/fractions/q0.png then it finds the image and prints the file path.
    But, if I put it in another folder such as the src folder it can't find the image and url = null;
    How can I make netbeans search in other folders for the resources so I can store them where I like?

  • Problems importing with LR 1.3 - Problems finding a location?

    When I try to import photos from my camera LR pops up a message saying it's having a problem finding a location to put the imports. Then when I try to import again, it goes without a problem. Has anyone else experienced this?
    thanks,
    Geoff

    Geoff-
    Can you give the exact message, what you then do? Also, type of image, platform, set up (internal, external drives, room on drive, RAM)

  • [AS] Batch find images with attributes

    Hi!
    I've done some applescripting with Indesign but scripting photoshop is new to me.
    Problem:
    Thousands of grayscale images in a folder. Some of them are not adjusted for print so i need to find images that has light values below 5% an dark values above 95% and move those images to another folder for later processing.
    Also some of the images are too wide or too high so those should be moved to another folder for later use.
    Can this be done with applescripting Photoshop or is there some other ways (application?)to do it?
    Any ideas?
    thanks
    jukka

    What kind of file types do you have? AppleScript has access to SIPS via 'Image Events' a GUI-less app this can check some attributes of files without you opening them (no .eps though). For your below 5% above 95% the only method I can think of at the moment would be to open in Photoshop and read the first and last 12-ish items of the histogram. Something like this would tell you if you have pixels in those ranges. Assuming an open grayscale image.
    tell application "Adobe Photoshop CS2"
    activate
    set docRef to the current document
    tell docRef
    set docWidth to width
    set docHeight to height
    set docHistogram to histogram of channel "Gray"
    set above95 to 0
    repeat with i from 1 to 12
    set above95 to above95 + (item i of docHistogram)
    end repeat
    set below5 to 0
    repeat with i from 244 to 256
    set below5 to below5 + (item i of docHistogram)
    end repeat
    if (above95 > 0) and (below5 > 0) then
    display dialog "NOT OK Image"
    else
    display dialog "OK Image"
    end if
    end tell
    end tell

  • Still having problems with images

    I am still having problems putting images into an Oracle 9i database and fetching them back out.
    I think I have finally managed to force a blob image into the database, but can't seem to get it back out into a byte array.
    After many iterations, I have come up with something that might be getting close.
    The code is listed below.
    Everything has been simplified as much as I can.
    The function get_user_picture_func1 returns a single blob for a specified index.
    In this case, I have hardcoded the index = 3 and I think there is an image in the database for that index. (it says there are bytes there anyway).
    The byte array to store the image is defined outside the method fetchImage().
    byte[] imageData;
    When I call fetchImage() I get the following exception:
    Invalid argument(s) in call: getBytes().
    at the line
    imageData = picture.getBytes(zro, k);
    It looks like getBytes has two parameters, Long offset, int length.
    I had diagnostic statements and I confirmed that the statement:
    int k = (int)picture.length(); returned k=4198 (the same size as the image).
    I am at a loss to understand what the exception is trying to tell me.
    I'be been trying to get this to work for a week now and am really getting burned out trying to find anything that works.
    void fetchImage()
    Blob picture;
    String query = "{ ? = call get_user_picture_func1( ? ) }";
    try
    CallableStatement cs = con.prepareCall( query );
    cs.registerOutParameter(1, OracleTypes.BLOB);
    cs.setInt(2,3);
    cs.execute();
    picture = cs.getBlob(1);
    if( picture != null)
    InputStream in = picture.getBinaryStream();
    int k = (int)picture.length();
    imageData = new byte[k];
    long zro = 0;
    imageData = picture.getBytes(zro, k);
    catch( Exception e)
    }

    I have been using my iPad mini with keynote to make slide presentations in  my classes.There has been no problem until I upgraded to Keynote 5.3. Now the refresh rate on the iPad mini is so slow and out of sync with the projected image that I was forced to not use keynote! I have 2 years of work invested that I will have to toss unless this gets fxed. I have not had this problem with this equipment/files before. Only change was upgrade to keynote 5.3. ( Some details: I connect to the projector with a  VGA cable and Apple lightining adaptor to the iPad Mini. All updates current on theiPad Mini.)  Yes I did turn on and off all equipment. And I did check all cable connections. Thanks for any help you may give!

  • Problem to image HP DC5850

    Hi everyone....
    I have a problem to image an HP DC5850 computer.
    I have Zenworks 7 running in SLES 9 with the last patches for Zenworks 7 and the December 2008 drivers update.
    When i try a PXE boot or with a CD, i have this error:
    Could not find Zenworks Installation source.
    Someone have an idea?

    stevev,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • How do I find images in LR 2.4 (imported from CS4 Bridge) that have color labels already assigned In CS4 Bridge? I have set both Bridge and LR color labels text to match (eg Green for green, etc).

    How do you find images in LR 2.4 that have been imported from CS4 Bridge and have been assigned a color label in Bridge?  I have set both LR 2.4 and my CS4 Bridge to match the text for each color to be the same (eg. Green for green, etc), and the filter search in LR 2.4 shows that a label has been assigned, but I am unable to identify and locate the specific images in LR 2.4 that have had a color label assigned from CS4 Bridge.  I have tried to search via attribute, metadata, text, etc...Is it necessary to re-assign color labels all over again, image by image, in LR 2.4, or is there a way to automatically have the color labels assigned in CS4 Bridge be assigned and searchable to the images after they have been imported into the LR 2.4 catalogue from the Bridge program?

    JohnM.
    I closed both programs and re-imported photos and re-tried the action of having LR  read the XMP metadata from the CS4 files, and it seems to work now just fine...don't know why now and not before, but thanks much. Is there a way to have LR do this automatically upon import of images from CS4?  I tried to do this with an import metadata preset, but no luck.  It seems as if I can only do this once the images have already been imported into LR, and then to have to have LR read the metadata from the CS4 Bridge files.  thanks gain.

  • I just installed my CS5.1 on my new Lenovo Laptop Win 8.1. Problem -- On Image Adjustments none of the adjustment options respond.

    I just installed my CS5.1 on my new Lenovo Laptop Win 8.1. and everything worked for a day. On day 2 I ran into Problems -- On > Image >Adjustments none of the adjustment options respond. None of the toolbar functions such as >Crop etc respond.
    I then installed the same download on my PC and everything works as it should.
    Can anybody help please
    Roland

    Notebook Info
    1 x Lenovo G710 Notebook, Intel® Core™ i5, 43,9 cm (17,3 "), 1000 GB HD,
    Intel Core i5-4210M 2,60 GHz, (Turbo-Boost 2.0 bis 3,20 GHz)
    43.9 cm (17.3") 900p (HD+) LED-Display (1600 x 900)
    8192 MB DDR3-RAM
    Harddisk: 1000GB SATA
    NVIDIA N15V-GM mit 1GB DDR3
    Prefs
    As per download settings, I changed nothing
    Image Info
    Jpg conv.from RAW Canon, dim. 4746x3567, 6,64 Mb
    The software worked on the first day, problems appeared next day. I uninstalled and deleted the exe.file, then redownloaded and reinstalled but same problem persists.
    I then downloaded and installed on my PC and everything works.
    Regards Roland

Maybe you are looking for

  • Save as from Acrobat , all filenames read "PDF File"

    Acrobat Pro 9.4.4 has developed a new to me bug.  If I "save as" to a folder containing PDF files all the file names in the window read the file type "PDF FILE" (see the attachment)  however, when I move the cursor on to any file the file name field

  • Reliability Problem

    hi all, i have been developping webservices since the last past 7 months, so it's not a "how to" problem. I hope that someone could maybe help in finding some clues. Here is my problem: i have made a webservice, with a java client, and a .NET Server.

  • Visual Admin connection problems (MBean related?)

    Has anyone experienced problems starting the Visual Administrator with the preview? I can authenticate correctly but then receive an exception during the post-authentication connection process. The Visual Administrator continues to count toward 100%

  • KM Activity Reporting Service,can't find kmc_activity's file

    EP7.0 SPS14 refer to blog <How To Analyze Portal Activity with Activity Data Collector>,I want to stat KM access,read .... the folder activity_trace_default_directory_name was created under /usr/sap/<System-ID>/JC<xx>/j2ee/cluster/server<n>/,But ther

  • How will I know my existing DB is in Unicode or Non-Unicode

    I know you will get character set information with following query. select PARAMETER, value from nls_database_parameters where parameter = 'NLS_CHARACTERSET'; Result is : WE8MSWIN1252 (My DB is hosted on Windows server 2003 64Bit Machine and created