How to reference an image which is inside of ArrayList?

Hi,
I have an item renderer which displays an image.
When image is loaded from file I'm just using this : <mx:Image source="...
But how to to reffer the image data (png images) which are inside of  ArrayList ?
Thanks!

Taking a guess here:
<mx:Image source="{myList.getItemAt(3)}">
Or
<mx:Image id="someImage">
then in ActionScript:
someImage.source = myList.getItemAt(3);

Similar Messages

  • How to display an Image which is on Panel behind JScrollPane - Please Help

    Hiii All,
    How to display an Image which is on Panel behind JScrollPane. I have set the setOpaque() method of JScrollPane to false still when i run the program the JScrollPane is set as Opaque.. Can some one please help me in this...
    Thanks,
    Piush

    you need to set both
    scrollPane.setOpaque(false);
    scrollPane.getViewport().setOpaque(false);

  • How to display the image which in KM folder using url iview

    Hi Friends
    How to display the image, which is under KM folder structur using the url iview.
    i trying using url iview url as  \document\testfolder\abc.jpg as url for the iview.
    but its now working .. so please help me how to slove this problem
    If is not the correct way then please suggest me best way to achive this.
    Thanks
    Mukesh

    Hi Mukesh,
    I think this may work,
    1, Create a HTML Layout.
        You can put your image wherever  u want with HTML Codes.
        Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
        With this, u can use the standard KM commands also.
    2, U need to use KM Navigation iView for this rather than KM Doc iView.
    3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
    Regards
    BP

  • How to display an image, which is stored in a database?

    Hi All,
    I would like to display an image with Web Dynpro.
    I already know how to display an image which is stored in the path src/mimes/Components/...
    But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
    Thanks in advance!
    Regards,
    Silvia

    Hallo John,
    yes, you can use the Image UI element.
    Further you have to create a String for the URL. Implement like as follows:
    IWDCachedWebResource cachedResource = null;
    String imgUrl = null;
    WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
    IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
    WDWebResourceType type = binaryType.getMimeType();
    byte[] file = wdContext.currentXYElement().getPicDB();
    if (file != null)
    cachedResource = WDWebResource.getWebResource(file, type);
    try
    imgUrl = cachedResource.getURL();
    catch (WDURLException e)
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                        msgMgr.reportException(e.getLocalizedMessage(), true);
    I hope it will help you.
    Regards,
    Silvia

  • How to reference background image url from css?

    Hello,
    I have uploaded some images and css files to the "Shared Components > Images".
    How can I reference my images as "background-image:url('XXX.gif')" for a css element?
    Thanks,
    John

    To make what Tyler said explicit: APEX doesn't perform recursive (or indeed any) substitution on static files, Re: Use uploaded images in uploaded CSS, so images in static files can't be referenced using #APPLICATION_IMAGES# or #WORKSPACE_IMAGES# in style sheets that are themselves static files. The Re: Help with STATIC HTML file reference another STATIC HTML/CSS file..

  • How To Access JSP Image file Path inside JavaBean Class

    In my Webapplication,i have jsp and javabeans files. i need to send one image file path contains in Image folder to JavaBean[MyBean.java].
    From MyBean i am trying to display that image using PdfGen Application[JAR] in a new PDF Document.
    The Web Application Structure is as
    MyWebApp
    Image
    \ mypic.gif
    JSP
    \myjsp.jsp
    WEB-INF
    classes
    \pack.MyBean.java
    My Question :
    Inside the webapplication[JSP] the image file is accessed as a URL.(like http://localhost:7001/mywebapp/Image/mypic.gif). but From JavaBean: How To access this file? becz inside javabean it needs a complete system path..How to solve this problem? plz send me any solutions related to my problem....Thank U.

    Dear Madruguinha!
    Thank you very much for your tips.
    but i find another one method for accessing the image.
    // Inside Servlet or JSP
    String realPath=getServletContext().getRealPath("Image"+"/pic1.gif");
    Now we can send this exact system path variable to any java beans or java class that needs the image path as "drivename:\foldername\filename" like "c:\myflolder\mypic.gif" and not web context path.

  • How to insert a image which is in word file in a report ?

    I must place a Logo in a report but the image is in a Office word file. If I had the image as a file , It was be certainly easy I think.
    What I can do to insert this image in my report ?
    Regards and Thanks for helps.
    I work in 6i Oracle Report.

    Thanks Ammad for your response.
    Then the provider of my image doesn't have pushed computing knowledge so it provides me as word file.
    Now I have copied it as you said in mspaint and save it as image.
    But in the Report the old logo is placed in a field as data from a table of database. the data in the table has 'Long Raw' type.
    Then now my problem is how to adapt my image as a field data in this table of Database to have the new logo.
    What I am doing this ? : place my image as data in the table so that I can position it in the field in report as source of data ?
    Thanks for helps.
    Regards.

  • How to save image which is inside an applet?

    In my web application, I am displaying some graphs using applet. I wish to let the user save the graphs as images from the browser.
    I would really appreciate if somebody could inform me about this.
    Thanks
    Sachin

    A couple of things...
    1) You will need to sign your applet afterwards, otherwise the user will not be able to save the graphic to their hard drive due to the Java security policy.
    2) I did something similar, a code snippet is below. Mine was a Servlet version though, and sent the buffered stream to a JSP page where it was displayed as a graphic. You can figure out how to modify this so that it goes to a File stream instead... You will
    OutputStream stream;
    BufferedImage bi = new BufferedImage(pieValueObject.getCanvasWidth(),                          pieValueObject.getCanvasHeight(),
    BufferedImage.TYPE_BYTE_INDEXED);
    Graphics2D graphics = (Graphics2D)bi.createGraphics();
    // paint all your stuff on the graphics object created above
    // use a JPEG encoder to actually take what is on the graphics
    // object inside the BufferedImage, and encode it to the stream.
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(stream);
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    param.setQuality(1.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(bi);
    // Your graphic is now in the Output stream.

  • How to Serialize a JPanel which is inside a JApplet

    Hi..
    I have a JApplet where i have a JPanel which contains some JLabels and JTextFields,now i have to Serialize that full Panel so that i can retrived it later on with the labels and textfields placed in the same order,for that i tried serializing the full panel on to a file but it is giving me NotSerializeException,i dont know how to tackel it..
    public SaveTemplate(JPanel com) {
    try {
    ObjectOutputStream os=new ObjectOutputStream(new FileOutputStream("Temp1.temp"));
    os.writeObject(com);
    catch(Exception e) {
    e.printStackTrace();
    This is the code..plz help me with that..

    Actually its forming a Template which client will generate and that has to saved on the serverside..So what i thought that once when the client has designed a template,i can save the full template which is a panel into a file and later on when he want to open the template i just have to read the file and create an object of JPanel and add to the frame,so i dont need to apply much effort for that...But now serialization in Applet is giving problem.

  • How to reference workspace image in static file?

    I have created a .js file and loaded it into shared components as a static file.
    It works great.....EXCEPT.....my images referenced in the code do not show up.
    My images are located as #WORKSPACE_IMAGES#. My code for referencing them is:
    document.getElementById("box").style.background="url('#WORKSPACE_IMAGES#Page_1.jpg')";
    When I put the javascript in the <head> of apex, it can find the images just fine using the above code. But, when I try this code in an external .js file, it can't find the images.
    Can anyone help me with understanding this and provide the code that I need to get my images to show up?
    Thanks much in advance,
    Maggie

    Well, that was weird. I put your code in a file with the same name that I had before and then uploaded the new file with your code and ran the application.
    The darn thing did exactly what it did before, even with only your code in the .js file. How did it make a connection to the old .js file content? It wasn't in the .js file anymore.
    Anyhow. I created a new external .js file with your code and uploaded it. And when I ran the application this is the message that I got.
    (drats I can't paste a picture of my message, will have to type it out for you)
    Image Url=wwv_flow_file_mgr.get_file?p_security_group_id=9563021284216398&p_fname=Page1.jpg

  • How to reference poplet images from Small_product view

    Is there any way to reference the poplets from the small_products view in BC
    I am wanting to change out an image based on colour using poplet images for a clothing site. I need to get the images and the order they are attached in the poplets?
    Any help would be great.
    Cheers Daniel

    Hi Daniel,
    Unfortunately we only have poplets rendering in the details/large layout view for products. 
    I'm unaware of any possible workarounds at this stage but will leave this post open for further suggestions.
    Kind regards,
    -Sidney

  • How can I add images which are not in Iphoto to Iweb photo gallery?

    I have many photos that I have not imported in Iphoto just because I worked on them with Photoshop and downloaded straight from the camera memory cards with a card reader. If I add the image from the disk with the add/choose command (or insert/choose: I have the italian version and I do not know what is the English original command...) the image is just attached to the screen but not inserted in the thumbnails of the gallery.
    Please help.
    Thanks
    Mauro
    Message was edited by: Bigabiga

    Drag/drop the picture you want to add on the area with the other thumbs.

  • How to display an image, which is stored in R3?

    Hi everyone,
    I need to display a image in a Web Dynpro application, this image is stored in SAP R3. Is there a FM to do that?
    Regards
    Eduardo Campos

    Hi Eduardo,
    if your image is in the system, there are the different syntax notations to retrieve it, as stated in the documentation link.
    To upload or download an image into an SAP system, just go to the MIME repository in the ABAP workbench, select an appropriate folder and do it. See http://help.sap.com/saphelp_nw2004s/helpdata/en/46/bb182fab4811d4968100a0c94260a5/frameset.htm and the sections on importing mimes and uploading and downloading mimes.
    Regards, Heidi

  • How to point to the HelpSet file which is inside a Jar

    Hi All,
    Can anyone please help me out on as to how I incorporate my help files (which are inside a jar) with JavaHelp. They are working fine when they are in a folder. But giving an error when i am trying to reference it from a jar file.
    Thanx in advance,
    Debopam.

    Hello,
    I have a little Example, and I hope this will help you.
    Melly
    * Opens the documentation in an JavaHelpViewer.
    protected void showDocumentation() {
         String jarFilePath = ".../test.jar";
         HelpSet hs = getHelpSet(jarFilePath);
         if (hs!= null) {
         HelpBroker hb = new HelpBroker(hs);
    hb.setDisplayed(true);
         else {
         System.out.error("Can't find the helpSet-file.");
    * Returns the HelpSet file which is in included into the given
    * jar file.
    * @param jarFilePath
    * @return the HelpSet file, or null, if the HelpSet file is not found.
    protected HelpSet getHelpSet(String jarFilePath) {
         HelpSet hs = null;
         try {
         String hsName = null;
         JarFile jar = new JarFile(jarFilePath);
         Enumeration entries = jar.entries();
         while (entries.hasMoreElements()) {
              ZipEntry entry = (ZipEntry) entries.nextElement();
              String entryName = entry.getName();
              if (entryName.endsWith(".hs")) {
              hsName = entryName;
              break;
         URL url[] = getURLs("file:" + jarFilePath);
         ClassLoader cl = new URLClassLoader(url);
         URL hsUrl = HelpSet.findHelpSet(cl, hsName);
         hs = new HelpSet(cl, hsUrl);
         catch (Exception exc) {
         System.out.error("Can't find a HelpSet file in: " +jarFilePath");
         hs = null;
         return hs;

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

Maybe you are looking for

  • The top bar on firefox is messing up

    When i first open firefox, it is fine. In about 30 minutes it messes up. Notice the top bar in the screen shot on firefox(where the minimize button & close button is located, on the left) It is a greyish blue. It is supposed to be Clear, like the top

  • How to implement a search engine in java ?

    Hi All, 1. Can anyone explain me with java code how to connect to a excel database residing on a different(I know that we do it thro' dsn) machine in my network. I know that we do it with a dsn. I created a network map but when I execute the statemen

  • Iphoto not recognising jpeg file

    I have a Sony Nex-5r camera.  Up until yesterday I could upload photos from camera to iphoto not a problem.  For no reason that I can pinpoint iphoto now comes up with a mesage stating that the files are not in a recognisable format and I can't trans

  • Settings for BW BEx web link

    Dear Friends, We have just migrated the BW 3.5 server to a higher end server. The host name had to be changed in the process due to which the BEx Web link (It is a default web link to access queries, not an Enterprise Portal link) is not accessible.

  • Error in bulding a DC created in WTS under Local Development

    Hi,   I've created a DC under Local Development in WTS.But when I tried to build it,I am getting the error "No javac found for JDK home path 'C:\Program Files\Java'". Please help me to get the soln. for the above problem. Thanks in advance.