Showing image located in km folder

Hi, i'm trying to show an image located in a km folder, i do this binding source property of an image element to an string element in the context, and then i assign the path of the iresource to the context element.
    The problem is that when try to show the image it ask for a user and id, because it open it as a external link, its is posible to put in the source a relative path (i don't know if it fix the problem) or i must open the image and asign it by code? do you know any solution ?
thanks

i think that when access to the km need an user like that:
    IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
                 //establish resource context
                 IResourceContext resourceContext = new ResourceContext(ep5User);
                 //get a resource factory
                 IResourceFactory resourceFactory = ResourceFactory.getInstance();
but when puts in the surce property of the image ui it try to open without login, if i copy a link to an image an try to open in a new window is the same.

Similar Messages

  • Apache: showing images in ascending order by name

    hi:
    i have several detail pages where i show images contained in
    a folder:
    $folder = dir($path);
    while ($folderEntry = $folder->read()){
    if ($folderEntry <> "." && $folderEntry
    <> ".." &&
    substr($folderEntry, -6, 2) <> "00") {
    echo '<li><img src="'.$path.$folderEntry.'"
    /></li>';
    $folder->close();
    in the local server they appear in the way i want, in
    ascending order by
    name (img_01.jpg, img_02.jpg, img_03.jpg, ...) but in the
    remote server
    they appear in, apparently, random order
    i activated FancyIndexing in the httpd.conf file but it
    doesn't solved
    the problem:
    # Directives controlling the display of server-generated
    directory
    listings.
    # FancyIndexing is whether you want fancy directory indexing
    or
    standard
    IndexOptions FancyIndexing
    # End of indexing directives.
    i know i can store the filenames names in an array an sort it
    but i
    prefer to control it in the server
    local (OS X 10.4.10)
    Apache/1.3.33 (Darwin) PHP/5.1.6
    remote (Red Hat Linux 2.6.9-34.ELsmp)
    Apache/2.0.52
    tia,
    jdoe

    Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
    Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Show only images in the selected folder

    Hi All,
    It would be nice if I could show only the images in the selected folder without including images in subfolders. For example a check box next to the folder name could switch between "selected folder only" and "include subfolders" viewing modes.

    Un-check Menu/Library/Include Photos from Subitems.
    It is already there in V1.1.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • My N80 track folder shows images and applications ...

    When I open the track folder from the gallery, not only does it show my music, it also shows images and applications, though the thumbnail for the applications is the thumbnail usually shown for images, plus some of these files aren't getting deleted, now my track folder is a total mess, can someone please tell me what to do??

    Hide Filename extensions and restart machine resolved my issue

  • The monitors of on location CS3 not showing image from Sony FX7

    O.L records OK and plays back but at no time do
    any of the monitors show an image. Was OK in Vista now gone to Windows 7
    Pre Pro CS3 ok on 7 (capture and playback.) Any suggestions please

    Dear Sir, Many many thanks for your very detailed answer everything works just fine. I'm not sure wether I should reply to your answer elsewhere please advise me if this is the case.
    thanks again William sign on name Breezley.
    Date: Mon, 4 Jan 2010 18:44:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: the monitors of on location CS3 not showing image from Sony FX7
    Breezley,
    OnLocation CS3 used Direct Draw to create the video window.  In Vista, you may have noticed that OnLocation CS3 would disable 'Aero' themed desktops as they did not support Direct Draw.  Windows 7 does not have this functionality, so you must disable the Aero theme manually to see the video in OnLocation CS3.
    To do this, right click on open desktop and choose Personalize.
    This will display available Themes.
    Scroll down to the 'Basic and High Contrast Themes'.
    Choose any one of the basic or high contrast themes.
    Restart OnLocation CS3.
    This should bring your video back into view.
    >

  • Content Tree Media Folder Not Showing Images

    I have below issue with getting the uploaded images under Media tree section in Content Tree. Please see if you can help me to figure out the issue.
    I did below configuration in Admin section for Tree same as avispots site.
    Title:
    Media
    Tooltip:
    Media
    Sites:
    avisports
    My_Site
    Required Roles:
    SiteAdmin, SitesUser, GeneralAdmin
    Tab Contents:
    My Image Asset
    Image Category
    Image
    ID:
    1336168677350
    My asset name is "My Image Asset". Though I am able to upload and see the images of type "My Image Asset" and Image type, I am not able to see them in the content tree. If I double click on Media it
    shows all images in browsing screen (same as after search) however it does not show them under the Media folder as shown in avisports site.

    Interesting, I'm getting the same thing.  I know for a fact, all of my music that I had album artwork for used to show the album art in Finder.  Admittedly, I don't know when this changed, as I haven't checked for a while (pre-mavericks).  One thing I did notice just now, though, is the album art does show for music purchased through iTunes.  It doesn't show for music that I have imported.  This didn't used to be the case...

  • Show image in crystal report 2008

    Hi All,
    I have a UDF - image type in Sales order Line item which stores image.
    Currently I want to display sales order line item data in CR2008 using a query.
    All data is coming but image field is showing image name in place of showing image.
    How can I show image.
    Kindly suggest.
    Deep Kulshrestha

    Hi Deep,
    An image type UDF only stores the image name in the database. When you add an image, the SBO client takes a copy of the image file and puts it in the Pictures folder (as defined in General Settings). Therefore, to use dynamic images in Crystal you will need to do the following:
    1) Create a formula in Crystal that combines the image name from the UDF field and the path to the Pictures folder to create the full path to the image (note: your Pictures folder must use a UNC or mapped drive path rather than a local path). It's easiest just to hardcode the path to the Pictures folder in the report but you'll have to bear in mind that this setting is company database specific. If you want to be able to run the report for multiple SBO databases then you may need to use a formula to change the path (you could add the OADM table to the report but there is no suitable join between this table and other tables in the database. The report would work because there is only ever 1 record in OADM but it's not good report design).
    2) Once you have your formula you can add a add a picture to the body of the report (at this point you should select a default image)
    3) Right-click the picture on the layout and choose Format Graphic.
    4) Select the Picture tab and click on the formula button to the right of the Graphic Location property
    5) In the formula window set the return value to the formula you created in step 1.
    6) At this point your image will dynamically change based on the UDF value. You may want to set a formula in the Suppress property of the image so that the default image is hidden if the UDF field is blank for a particular record.
    Kind Regards,
    Owen

  • Ebay searches not showing images

    When viewing my messages from ebay in hotmail the images are not showing up until I refresh at least two or three plus times. Why is this?

    just work on getting one simple image to .jar OK
    e.g. this should .jar OK (after changing image names)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      Image img;
      public void buildGUI()
        try
          java.net.URL url = new java.net.URL(getClass().getResource("Test.gif"), "Test.gif");
          if(url != null) img = javax.imageio.ImageIO.read(url);
        catch(Exception e){}//swallow exception - handled in paintComponent
        JPanel p = new JPanel(){
          public void paintComponent(Graphics g){
            super.paintComponent(g);
            if(img != null) g.drawImage(img,100,100,this);
            else g.drawString("this space for rent",100,100);
        JFrame f = new JFrame();
        f.getContentPane().add(p);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }put the image in the same folder, make .jar, then try the .jar on another pc
    if all OK, change code to locate image file in subfolder, make .jar, then try the .jar on another pc
    if all OK now, modify main program accordingly.
    note: in .jars, capitalization of the image file names counts
    e.g. in my above example, if I change Test.gif to test.gif, the image is not drawn

  • Jar file not showing images

    Hi
    When I make a runable jar file, my images it not showing if I try it on another computer. I searched the net and most people seems to use URLs instead ImageIO. But that doesnt help me either. Then I get the error message: Uncaught error fetching image:
    java.lang.NullPointerException
    Code is below. I hope someone can tell me what I should do.
        private Show show;
        private final int unit = 32;    // size of the images
    //    private BufferedImage free;
        private Image free;
        private BufferedImage booked;
        private BufferedImage toBeBooked;
        private BufferedImage ableToEdit;
        public TheaterOverview(Show show)
            this.show = show;
    //        try
    //            free = ImageIO.read(new File("src/images/user_alt2.png"));
    //            booked = ImageIO.read(new File("C:/Documents and Settings/Mads/Programmering/Eclipse/workspace/BioBooking/src/images/user_alt.png"));
    //            toBeBooked = ImageIO.read(new File("C:/Documents and Settings/Mads/Programmering/Eclipse/workspace/BioBooking/src/images/user.png"));
    //            ableToEdit = ImageIO.read(new File("C:/Documents and Settings/Mads/Programmering/Eclipse/workspace/BioBooking/src/images/user-yellow.png"));
    //        catch (Exception e)
    //            System.out.println("Not able to read images " + e);
            try
                URL myurl = this.getClass().getResource("images/user_alt2.png");
                Toolkit tk = this.getToolkit();
                free = tk.getImage(myurl);
    //            free = ImageIO.read(new File("images/user_alt2.png"));
                booked = ImageIO.read(new File("images/images/user_alt.png"));
                toBeBooked = ImageIO.read(new File("images/images/user.png"));
                ableToEdit = ImageIO.read(new File("images/images/user-yellow.png"));
            catch (Exception e)
                System.out.println("Not able to read images " + e);
         * The paint method. Checks what the status is of each seat and draws them accordingly.
        public void paint(Graphics g)
            Show show = getShow();
            int numberOfRows = show.getTheater().getNumberOfRows();
            int numberOfSeatsInRow = show.getTheater().getSeatsPerRow();
            for (int i = 0; i < numberOfRows; i++)
                for (int j =0; j < numberOfSeatsInRow; j++)
                    Seat seat = getShow().getRow(i).getSeat(j);
                    if(seat.isAbleToEdit())
                        g.drawImage(ableToEdit, j*unit+1, i*unit+1, null);
                    else if (seat.isBooked())
                        g.drawImage(booked, j*unit+1, i*unit+1, null);
                    else if (!seat.isBooked() && !seat.isSelected())
                        g.drawImage(free, 0, 0, this);
                    else if (seat.isSelected())
                        g.drawImage(toBeBooked, j*unit+1, i*unit+1, null);
        }

    just work on getting one simple image to .jar OK
    e.g. this should .jar OK (after changing image names)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      Image img;
      public void buildGUI()
        try
          java.net.URL url = new java.net.URL(getClass().getResource("Test.gif"), "Test.gif");
          if(url != null) img = javax.imageio.ImageIO.read(url);
        catch(Exception e){}//swallow exception - handled in paintComponent
        JPanel p = new JPanel(){
          public void paintComponent(Graphics g){
            super.paintComponent(g);
            if(img != null) g.drawImage(img,100,100,this);
            else g.drawString("this space for rent",100,100);
        JFrame f = new JFrame();
        f.getContentPane().add(p);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }put the image in the same folder, make .jar, then try the .jar on another pc
    if all OK, change code to locate image file in subfolder, make .jar, then try the .jar on another pc
    if all OK now, modify main program accordingly.
    note: in .jars, capitalization of the image file names counts
    e.g. in my above example, if I change Test.gif to test.gif, the image is not drawn

  • JEditor pane not showing images

    the following piece of code displays a directory and the link displays all the files ,if it is an image it shows the preview but actually i am not getting the image ,can any one help me?
    thanks
    code:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.util.Date;
    * This class implements a simple directory browser using the HTML
    * display capabilities of the JEditorPane component.
    public class FileTableHTML {
      public static void main(String[] args) throws IOException {
        // Get the name of the directory to display
        String dirname = (args.length>0)?args[0]:"C://Documents and Settings//400305//My Documents//SyncIT";
        // Create something to display it in.
        final JEditorPane editor = new JEditorPane();
        editor.setEditable(false);               // we're browsing not editing
        editor.setContentType("text/html");      // must specify HTML text
        editor.setText(makeHTMLTable(dirname));  // specify the text to display
        // Set up the JEditorPane to handle clicks on hyperlinks
        editor.addHyperlinkListener(new HyperlinkListener() {
          public void hyperlinkUpdate(HyperlinkEvent e) {
         // Handle clicks; ignore mouseovers and other link-related events
         if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
           // Get the HREF of the link and display it.
           editor.setText(makeHTMLTable(e.getDescription()));
        // Put the JEditorPane in a scrolling window and display it.
        JFrame frame = new JFrame("FileTableHTML");
        frame.getContentPane().add(new JScrollPane(editor));
        frame.setSize(650, 500);
        frame.setVisible(true);
      // This method returns an HTML table representing the specified directory
      public static String makeHTMLTable(String dirname) {
        // Look up the contents of the directory
        File dir = new File(dirname);
        String[] entries = dir.list();
        // Set up an output stream we can print the table to.
        // This is easier than concatenating strings all the time.
        StringWriter sout = new StringWriter();
        PrintWriter out = new PrintWriter(sout);
        // Print the directory name as the page title
        out.println("<H1>" + dirname + "</H1>");
        // Print an "up" link, unless we're already at the root
        String parent ="C://Documents and Settings//400305//My Documents//SyncIT";
        if ((parent != null) && (parent.length() > 0))
          out.println("<A HREF=\"" + parent + "\">Up to parent directory</A><P>");
        // Print out the table
        out.print("<TABLE BORDER=1  WIDTH=600 height=500><TR>");
        out.print("<TH>Name</TH><TH>Size</TH><TH>Modified</TH>");
        out.println("<TH>Readable?</TH><TH>Writable?</TH></TR>");
        for(int i=0; i < entries.length; i++) {
          File f = new File(dir, entries);
    out.println("<TR><TD>" +
              (f.isDirectory() ?
                        "<a href=\""+f+"\">" + entries[i] + "</a>" : "<img src=\""+f+"\">"+
              entries[i]) +
              "</TD><TD>" + f.length() +
              "</TD><TD>" + new Date(f.lastModified()) +
              "</TD><TD align=center>" + (f.canRead()?"x":" ") +
              "</TD><TD align=center>" + (f.canWrite()?"x":" ") +
              "</TD><br><br><br><br><br></TR>");
    System.out.println("<TR><TD>" +
              (f.isDirectory() ?
                        "<a href=\""+f+"\">" + entries[i] + "</a>" : "<img src=\""+f+"\" align=left width=30 height=30 border=0>"+
              entries[i]) +
              "</TD><TD>" + f.length() +
              "</TD><TD>" + new Date(f.lastModified()) +
              "</TD><TD align=center>" + (f.canRead()?"x":" ") +
              "</TD><TD align=center>" + (f.canWrite()?"x":" ") +
              "</TD><br><br><br><br><br></TR>");
    //System.out.println("<img src=\""+f.toString()+"\""+" align=left width=30 height=30 border=0"+">");
    out.println("</TABLE>");
    out.close();
    // Get the string of HTML from the StringWriter and return it.
    return sout.toString();

    just work on getting one simple image to .jar OK
    e.g. this should .jar OK (after changing image names)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      Image img;
      public void buildGUI()
        try
          java.net.URL url = new java.net.URL(getClass().getResource("Test.gif"), "Test.gif");
          if(url != null) img = javax.imageio.ImageIO.read(url);
        catch(Exception e){}//swallow exception - handled in paintComponent
        JPanel p = new JPanel(){
          public void paintComponent(Graphics g){
            super.paintComponent(g);
            if(img != null) g.drawImage(img,100,100,this);
            else g.drawString("this space for rent",100,100);
        JFrame f = new JFrame();
        f.getContentPane().add(p);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }put the image in the same folder, make .jar, then try the .jar on another pc
    if all OK, change code to locate image file in subfolder, make .jar, then try the .jar on another pc
    if all OK now, modify main program accordingly.
    note: in .jars, capitalization of the image file names counts
    e.g. in my above example, if I change Test.gif to test.gif, the image is not drawn

  • Show image in or possibly out suggest

    Hi everybody,
    I guess that since nobody answered my previous post that
    maybe it's was to long to solve or to complex for a forum solution.
    My other solution to my problem would be to show an image
    selected in the "dropdown" from my autosuggest instantly.
    I tried to show thumbnails in the menu as show in the example
    but it loads all my picture (2400 right now)
    I would like to choose a pic in my menu and the picture to
    show on a separate layer in my page
    i show you my code:
    <div id="productSampleContains" class="container">
    Entrez quelques lettres du produit
    recherch&eacute;.<br />
    <form method="get" action="phponlyworking.php">
    <input type="text" id="blahblahblah" />
    <div id="productMenuContains"
    spry:region="dsProducts5">
    <div spry:repeat="dsProducts5"
    spry:suggest="{name}">{name}</div>
    </div>
    </form>
    </div>
    <script type="text/javascript">
    var as5 = new
    Spry.Widget.AutoSuggest("productSampleContains",
    "productMenuContains", "dsProducts5", 'name', {containsString:
    true,hoverSuggestClass:'highlight',minCharsType: 4});
    </script>
    And for my XML
    <?php
    $hostname_conn = "localhost";
    $database_conn = "pubs_gm";
    $username_conn = "root";
    $password_conn = "";
    $conn = mysql_pconnect($hostname_conn, $username_conn,
    $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    <?php
    // Query the database and get all the records from the Images
    table
    mysql_select_db($database_conn, $conn);
    $query_rsImages = "SELECT
    `nom_image`,`ID_image`,`fichier_image`FROM tbl_images";
    $rsImages = mysql_query($query_rsImages, $conn) or
    die(mysql_error());
    $row_rsImages = mysql_fetch_assoc($rsImages);
    $totalRows_rsImages = mysql_num_rows($rsImages);
    // Send the headers
    header('Content-type: text/xml');
    header('Pragma: public');
    header('Cache-control: private');
    header('Expires: -1');
    ?><?php echo('<?xml version="1.0"
    encoding="iso-8859-1"?>'); ?>
    <products>
    <?php if ($totalRows_rsImages > 0) { // Show if
    recordset not empty ?>
    <?php do { ?>
    <product>
    <category><?php echo $row_rsImages['ID_image'];
    ?></category>
    <name><?php echo $row_rsImages['nom_image'];
    ?></name>
    <boximage><?php echo
    $row_rsImages['fichier_image']; ?></boximage>
    </product>
    <?php } while ($row_rsImages =
    mysql_fetch_assoc($rsImages)); ?>
    <?php } // Show if recordset not empty ?>
    </products>
    <?php
    mysql_free_result($rsImages);
    ?>
    thanks for any help...have a nice week

    Hi Deep,
    An image type UDF only stores the image name in the database. When you add an image, the SBO client takes a copy of the image file and puts it in the Pictures folder (as defined in General Settings). Therefore, to use dynamic images in Crystal you will need to do the following:
    1) Create a formula in Crystal that combines the image name from the UDF field and the path to the Pictures folder to create the full path to the image (note: your Pictures folder must use a UNC or mapped drive path rather than a local path). It's easiest just to hardcode the path to the Pictures folder in the report but you'll have to bear in mind that this setting is company database specific. If you want to be able to run the report for multiple SBO databases then you may need to use a formula to change the path (you could add the OADM table to the report but there is no suitable join between this table and other tables in the database. The report would work because there is only ever 1 record in OADM but it's not good report design).
    2) Once you have your formula you can add a add a picture to the body of the report (at this point you should select a default image)
    3) Right-click the picture on the layout and choose Format Graphic.
    4) Select the Picture tab and click on the formula button to the right of the Graphic Location property
    5) In the formula window set the return value to the formula you created in step 1.
    6) At this point your image will dynamically change based on the UDF value. You may want to set a formula in the Suppress property of the image so that the default image is hidden if the UDF field is blank for a particular record.
    Kind Regards,
    Owen

  • How to get all image files from a folder to wwv_flow_files?

    Hi there!
    Is it possible in apex to show, in a report look-a-like, all image filenames from a folder in another machine (i enter in that machine by ip) and insert all files into wwv_flow_files?
    I want to see all files, then pick one and open a image...
    But it can't be by browse item... it has to show all filenames as a list...
    If it is possible, how can i do it?
    Thanks!
    Best regards,
    Luis Pires

    Hi,
    you can connect to the server using UTL_HTTP.
    Then for each files you copy the response into a BLOB to be able to show it or to store it in a table.
    A piece of code :
    begin
       -- initialize the BLOB.
       dbms_lob.createtemporary(l_blob, false);
       -- path to the file
       l_url := 'http://your_server/your_file.jpg';
       -- begin retrieving the target.
       l_req := utl_http.begin_request(l_url);
       -- identify ourselves (some sites serve special pages for particular browsers)
       utl_http.set_header(l_req, 'User-Agent', 'Mozilla/4.0');
       -- start receiving the response.
       l_resp := utl_http.get_response(l_req);
       -- copy the response into the BLOB.
       begin
          loop
             utl_http.read_raw(l_resp, l_raw, 32767);
             dbms_lob.writeappend (l_blob, utl_raw.length(l_raw), l_raw);
          end loop;
          -- stop when exception end_of_body is raised
       exception
          when utl_http.end_of_body then
             utl_http.end_response(l_resp);
       end;
    end;It's a minimal example, you may need authentication, check l_resp.status_code, etc...

  • How use PHP to read image files from a folder and display them in Flex 3 tilelist.

    Hello. I need help on displaying images from a folder dynamically using PHP and display it on FLEX 3 TileList. Im currently able to read the image files from the folder but i don't know how to display them in the TileList. This is my current code
    PHP :
    PHP Code:
    <?php
    //Open images directory
    $imglist = '';
    $dir = dir("C:\Documents and Settings\april09mpsip\My Documents\Flex Builder 3\PHPTEST\src\Assets\images");
    //List files in images directory
    while (($file = $dir->read()) !== false)
    if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
    echo "filename: " . $file . "\n";
    $dir->close();
    ?>
    FLEX 3 :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="pic.send();">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.ItemClickEvent;
    import mx.rpc.events.ResultEvent;
    public var image:Object;
    private function resultHandler(event:ResultEvent):void
    image = (event.result);
    ta1.text = String(event.result);
    private function faultHandler(event:FaultEvent):void
    ta1.text = "Fault Response from HTTPService call:\n ";
    ]]>
    </mx:Script>
    <mx:TileList x="31" y="22" initialize="init();" dataProvider = "{image}" width="630" height="149"/>
    <mx:String id="phpPicture">http://localhost/php/Picture.php</mx:String>
    <mx:HTTPService id="pic" url="{phpPicture}" method="POST"
    result="{resultHandler(event)}" fault="{faultHandler(event)}"/>
    <mx:TextArea x="136" y="325" width="182" height="221" id="ta1" editable="false"/>
    <mx:Label x="136" y="297" text="List of files in the folder" width="182" height="20" fontWeight="bold" fontSize="13"/>
    </mx:Application>
    Thanks. Need help as soon as possbile. URGENT.

    i have made some changes, in the php part too, and following is the resulting code( i tried it, and found that it works.):
    PHP Code:
    <?php
    echo '<?xml version="1.0" encoding="utf-8"?>';
    ?>
    <root>
    <images>
    <?php
    //Open images directory
    $dir = dir("images");
    //List files in images directory
    while (($file = $dir->read()) !== false)
    if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
    echo "<image>" . $file . "</image>"; // i expect you to use the relative path in $dir, not C:\..........
    //$dir->close();
    ?>
    </images>
    </root>
    Flex Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="callPHP();">
    <mx:Script>
    <![CDATA[
    import mx.rpc.http.HTTPService;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.ItemClickEvent;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var arr:ArrayCollection = new ArrayCollection();
    private function callPHP():void
    var hs:HTTPService = new HTTPService();
    hs.url = 'Picture.php';
    hs.addEventListener( ResultEvent.RESULT, resultHandler );
    hs.addEventListener( FaultEvent.FAULT, faultHandler )
    hs.send();
    private function resultHandler( event:ResultEvent ):void
    arr = event.result.root.images.image as ArrayCollection;
    private function faultHandler( event:FaultEvent ):void
    Alert.show( "Fault Response from HTTPService call:\n " );
    ]]>
    </mx:Script>
    <mx:TileList id="tilelist"
    dataProvider="{arr}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Image source="images/{data}" />
    </mx:Component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

  • My laptop had to be reimaged and all software and programs were taken off.  I installed itunes again but can't access my library.  I get an error message "the folder itunes cannot be found or created and is required.  The default location for this folder

    I can't access my itunes music on my laptop after having it re-imaged.  I installed itunes again but can't access the music folder.  I get the following message when I click to open itunes:  "The folder itunes cannot be found or created, and is required.  The default location for this folder is the Music folder.
    I have an iPad2, and iPad mini, and an iPhone5 with a different number of songs on each.  I want to sync everything -- should have close to 800 songs.  Tried to get support from Apple but would be charged for help. 

    I have a Windows 7 operating system my computer runs from.

  • I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it.

    I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it. All of the files are going into the same zip file but I want them visually in the space that I put them and not at the bottom of the snap to grid folder location they are looking like.  I am trying to  drag and drop files in groups so that I can group them for now, but image files always do their own "sort by" when I drag them from my web pages. Links don't do it though.  I tried resetting the folder, and deleting the DS files. No luck.

    You keep asking variants on this same question. You've had replies in all your other threads. If you can't find them, go here and click where it says Activity:
    Thomas Cannon Jr.

Maybe you are looking for

  • Making SKTO condition type as 0% in case of credits

    Hi All,               This is about the common scenario where in we give the credit back to the customer in normal practice as well in case of returns. The requirement is that whenever I create a credit memo (G2) or credit for returns (RE) , the SKTO

  • I downloaded an audio file.  How do I find it now?

    I downloaded an audio file, but as a newbie to iphones, I don't know how/where to find it now.  Where do I find it?  It looked like it was working just fine from the website, but now in my iphone, I don't know where it is.

  • Macbook pro cracking at hinge

    My Macbook pro (bought in november 2008) has started to crack!! It seems like it's getting worse... It looks just like this: http://www.mac-forums.com/forums/apple-notebooks/141840-new-unibody-macbook-pro- cracking-hinge.html Do you think Apple will

  • Problems with FPLVMgr.dll in Windows NT

    I have an application that works beautifully in Windows 98, but when loaded onto NT, I get an error message that says: "The application or DLL C:\P2100\program\FPLVMgr.dll is not a valid Windows NT image. Please check this against your installation d

  • How to extract one dimension out of a two dimensiona​l array

    Hello, May be this question is too naive and simple.I have a two dimensional array (two columns and 256 rows). All I want is to extract one of these columns as a separate one dimensional array. It seems like a very very basic task that any programmin