Is it possible to know the file name of images loaded?

Hi:
I have a folder containing some images named 01_image_name.jpg, 02_image_name.jpg, 03_image_name.jpg, ... wich names I read with a PHP script. Then I loop loading each image and waiting until all are loaded to display them
1. The PHP script reads file names and returns a string with names separated by a "|" char, then I use the split method to store them in imagesNames array and sort it
2. I loop trough imagesNames array loading images
3. Anytime a new image arrives I push it in imagesContainer array and check if all images are loaded to show them
The problem is there's no guarantee they arrive in the same order they were requested. So, how I sort the imagesContainer array by file name, i.e. in the same order they are in imagesNames array?
Thanks in advance

if you know when a new image arrives and you can retrieve that new image file name ...
Well, that's precisely my doubt, how can I know the file name? Is there a property/method for it?
function loadImages() {
for (var i:int=0; i<imagesNames.length; i++) {
var imgLoader:Loader=new Loader;
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoaded);
imgLoader.load(new URLRequest(imgPath + imagesNames[i]));
function imgLoaded(par:Event):void {
trace(par.target,par.target.content,par.target.content.name);
Output window:
[object LoaderInfo] [object Bitmap] instance160
[object LoaderInfo] [object Bitmap] instance159
[object LoaderInfo] [object Bitmap] instance161    

Similar Messages

  • [web] is it possible to manipulate the file names of images from a web gallery?

    Hi,
    I am new here so please forgive my dumb questions....
    I would like the resulting images in my web gallery to have sequential filenames (ie 1.jpg, 2.jpg etc)
    Is this possible and could you give me some clues how I might approach this?
    Thanks!
    Steve

    You can't rename the actual files from Web as they export. There's nothing in the SDK on it either.
    Lightroom does change the naming to make it websage. For example, spaces are turned into underscores.
    If you need sequential files, I'd suggest getting the files in order, then exporting the files as highest quality Jpeg with a sequential naming system.
    Click the Add to Catalog checkbox, and perhaps use 'The same folder' and then use a subfolder for organistion.
    Use these new images to create the web gallery.

  • In mini bridge, is it possible to view the file name and the rating at the same time?

    Hello,
    In mini bridge, is it possible to view the file name and the rating at the same time?
    Thank you.

    if you know when a new image arrives and you can retrieve that new image file name ...
    Well, that's precisely my doubt, how can I know the file name? Is there a property/method for it?
    function loadImages() {
    for (var i:int=0; i<imagesNames.length; i++) {
    var imgLoader:Loader=new Loader;
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoaded);
    imgLoader.load(new URLRequest(imgPath + imagesNames[i]));
    function imgLoaded(par:Event):void {
    trace(par.target,par.target.content,par.target.content.name);
    Output window:
    [object LoaderInfo] [object Bitmap] instance160
    [object LoaderInfo] [object Bitmap] instance159
    [object LoaderInfo] [object Bitmap] instance161    

  • Is it possible to know flat files names loading using particular info pack

    hi experts ,
    is it possible to know flat files names loading using particular info package  ??
    in our project we hav flat file extraction  manually ...as i am replacing old sap bi consultant i must contine pending loads ..
    as ther s no document about loads i must check and ensure about loads left out ..'
    for every flatfile they used load with differnt name ... if am able to get those files name i can list out  pending ones
    and can load
    is it possible to those details ??
    pls help me .....
    relative answer will rearded with points ............
    thanks in advance
    regards
    harry

    I AM REALLY THANK FUL FOR ALL.. your people are really quick .and giving relavtive answers ...
    they loaded from desktop only ....not from application server ..
    i got details  from info cube mange screen .they used to load data monthly wise ,so i hav given month in selection  and viewed data..
    Regards ,
    Harry

  • Can I include the file names of images in the image itself?

    *How can I get the file names of images on each image (without entering them by hand)?*
    (I am bring 250 images into a Keynote document, with each image on its own slide. I want to have the file names of the images shown on each slide or image. This doesn't need to look nice.)
    (If I can't do this in Aperture, I also have Photoshop Elements. Is there a way to do that in Elements?)

    You can't do this directly via Ap3. There are plug in's i believe that make it possible. Maybe someone knows more? Allan

  • Check if file exists without knowing the file name

    I'm new to Java and am working on a program that needs to check a folder every couple of min to see if a file has been placed there, then open the file, read it and then change the name.
    The file name will be similar to 20020905 (the current date, but I don't know if the time will be appended to the name or not), but will not have a file extention.
    If anyone could point me in the right direction, I'd appreciate it.

    why go about it using the file name? Why not use the lastModifiedDate, which will be less then the last time you checked, e.g.:
    Date lastCheck = new Date();
    while(true) {
      try {
         Thread.sleep(yourDelay);
      catch(Excepiton e) { }
      File [] files = yourDirectory.listFiles();
      for (int i = 0; i < files.length; i++) {
        if (files.isDirectory()) {
    //skip directories
    continue;
    Date modified = new Date(files[i].lastModified());
    if (lastCheck.before(modified)) {
    System.out.println(files[i].getName() + " is new");
    //update time of last check
    lastCheck = new Date();
    That code isn't real exact, but it gives you an idea. I think using the lastModified date is a little more elegant then keying off file name conventions, but use what ever works best. If you use code like I suggested, depending upon how often files are added you might have to account for a possiblity where a file is created while you are iterating through that 'for' loop, meaning its file creation date qualifies it for your condition, but it will be less then the newly updated lastCheck value.

  • How Does The Browser Know The "File Name" field in the "Save As" dialog

    Hi!
    I have a servlet called co.com.SomeStaff who reads a binary file from the server an sends it to the breowser.
    The Browser opens the "Save As" Dialog whith the value "co.com.SomeStaff" in the File name field, but and I need the name "SomeBinariFile.exe" instead.
    How can I change that value?
    Thanks All.

    Use <%
    response.setHeader("Content-Disposition", "attachment; filename=filename.2save");
    %>

  • Does illustrator list the images used in a particular file. I want to know the file names of the images used.

    Does illustrator CS5 list the images used in a particular document.
    By this I mean does it tell you the name of the actual images.

    But if the file has been embedded, the file name is lost.

  • How do you add the files name to images within a PDF

    I have been searching the web trying to find an answer to this question, I am not sure what the proper term is called, but I refer to it as a 'coded pdf'. Hopefully someone knows what I am talking about and can help me find an answer!
    The end product is a coded PDF that has the file name of all the images lableled on top the image. For example, a product brochure that has 500 images, all of them would be 'coded' with their file name, to find easy in source files. - Is this an export option in InDesign, or an option somewhere in Acrobat?
    Thank you in advance for any help.
    -Melissa

    No, Melissa's asking for a filename that's searchable - text made of pixels is no use.
    Acrobat cannot apply the original image filenames after the PDF has been created as it can't read the information from anywhere. You have two options, both in InDesign:
    use smart captions to add the name of the file in a visible format beside each image.
    use accessibility tagging and place the image filename in the ALT TEXT field, then export the PDF with tags enabled (the filename will not be visible on the page but will show if you hover your mouse over the image).

  • Possibility of capturing data file name in SQL * Loader

    Hi,
    I have a requirement to capture the data file name in the staging table, is there a way that i can capture it in SQL * Loader or any other way of doing it.
    Need experts suggestion please.
    Thanks,
    Genoo

    Hi Genoo.
    how do we capture the file name and stores in the temporary table
    You may use the above command mentioned in my previous post (if Linux) to populate the Test.csv file with the available file name in the directory, i.e:
    ls /some/path/*.dat | xargs -n1 basename  > /home/oracle/Test.csv
    1. Ensure to first load the Test.csv file as for eg:
    1,aaa
    2,bbb
    3,ccc
    2. Create a control file to load these records into temporary tables,for eg:
    load data
    infile '/home/oracle/Test.csv'
    into table file_name_upload
    fields terminated by ","
    ( id, file_name )
    3. Create the respective table in the database:
    create table file_name_upload
      id number,
      file_name varchar2(20)
    4. Load the data into temporary table
    sqlldr test/test control=/home/oracle/sqlldr_test.ctl
    Please refer notes:
    SQL*Loader - How To Load A Date Column With Fractions Of Second (Doc ID 1276259.1)
    Script To Generate SQL*Loader Control File (Doc ID 1019523.6)
    SQL*Loader performance tips (Doc ID 28631.1)
    How To use the Sequence Function of SQL*Loader (Doc ID 1058895.6)
    How to Get Data from Existing Table to Flat File Usable by SQL*Loader (Doc ID 123852.1)
    Also see link:
    10 Oracle SQLLDR Command Examples (Oracle SQL*Loader Tutorial)
    Thanks &
    Best regards,

  • How do I find the file that spotlight index is stuck on? (already know the file name)

    I was re-indexing my whole drive and it was going pretty smoothly until it was stuck for about 24 hours. When i took a look in console, this is what appeared:
    mdworker32(7488) deny iokit-open IOHIDParamUserClient (Importing type 'com.makemusic.mus' using 'file://localhost/Library/Spotlight/Finale.mdimporter/' - diagnostic:0 - find suspect file using: sudo mdutil -t 12366294)
    When I looked back, that "com.makemusic.mus" error message had pretty much been going on all day. I've tried to look for that file in the library preferences folders but I couldn't find them. I am using finale 2012. Can anyone tell me where I can find that file?
    Thanks

    Thanks for the update.
    The user is oracle and group is dba. I know from the name of the file that it is coming from oracle apps (somewhere in a custom program).
    Asgar

  • Does anyone know the file name of the root ($)?

    RoboSource Control unfortunately is not working correctly and a Rollback caused many topics to be permanently deleted. I'm waiting for approval from IT to get the 8.0.1 and 8.0.2 patches applied, but in the mean time we would like to restore our project from server tape backup. Only, I can't find out where the $ root is stored on the server to have it restored.
    Does anyone know the name of the file that is the root? I was expecting to see a file called root or $, but can not locate a file named either.

    Your DB Administrator should be able to recover a TSM backup OF YOUR ENTIRE DATABASE, not the project, from tape.  The database object the DBA is retrieving will not have the $ (or the * sign).  It will be named whatever you named the database when you created the database.
    Your database name is located on the Connection screen.
    Hope it helps...
    Steve

  • Can we possible to retrive the file name from the directory...?

    Can we possible to retrive the list of files or file names from the directory...?
    The directory called create or replace directory [directory_name] as ....

    Yeah, yeah its very good example for this scenario.
    I agree. But, I want to learn about Java based PL/SQL code development for that just I am asking any link for this kind of material.....:-)

  • Is it possible to know the computer name ?

    Hello,
    I have set some parameters depending on computer.
    I mean that we have some PC in different place, and I want set some parameters ( on report screen selection ) depending by the PC.
    Exemple:
    If I log me on PC N° 1, for report X I have p_param = 'ABC' (on report)
    If I log me on PC N° 2, for report X I have p_param = 'DEF' (on report)
    I chek on sy variable... but I nothing found.
    Is it possible ?
    Thank you
    R

    data str type string.
    cl_gui_frontend_services=>get_ip_address(
      receiving
        ip_address           = str
      EXCEPTIONS
        cntl_error           = 1
        error_no_gui         = 2
        not_supported_by_gui = 3
        others               = 4
    IF sy-subrc  0.
    cl_gui_cfw=>flush(
      EXCEPTIONS
        cntl_system_error = 1
        cntl_error        = 2
        others            = 3
    IF sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    write : str.
    CALL FUNCTION 'TERMINAL_ID_GET' DESTINATION 'R3GETCRM'
    EXPORTING
    username = sy-uname
    IMPORTING
    terminal = l_terminal_usr41
    EXCEPTIONS
    multiple_terminal_id = 1
    no_terminal_found = 2
    OTHERS = 3.

  • Reading a File by Knowing a part of the file name

    Hi Java Gurus,
    Can I copy a file to another location by knowing a part of the file name.I know the extension of the file and part of the file name.Can I copy such a file to another directory?
    Eg :
    0099999999_JAPPLIC_20090320.pdf is the file name.
    I know the file name contains 'JAPPLIC' .Can I use this clue and the extension of the file to copy the file to another directory.
    Please let me know whether it is possible or not.
    Regards,
    Rakesh.

    Hi ,
    I used the below code and I was able to solve the problem.I was able to select the files of the required extension and serach for the file names containing the text I know and use such files and move to another directory.It may be helpfulk to you people
    public class FileDeletion {
    public static void main (String args[]) {
         String e = "";
         String d = "C:\\TCCTouchpoints\\Attachments_Export\\outbound";
         String newFileLoc = "C:\\TCCTouchpoints\\Attachments_Export\\move";
    ExtensionFilter filter = new ExtensionFilter(e);
    File dir = new File(d);
    File newLoc = null;
    String[] list = dir.list(filter);
    if (list.length == 0) return;
    System.out.println("File Length "+list.length);
    ArrayList fileNames = new ArrayList();
    for (int i = 0; i < list.length; i++) {
    /*file = new File(d + list);
    boolean isdeleted = file.delete();
    System.out.print(file);
    System.out.println( " deleted " + isdeleted);*/
         System.out.println(list[i]);
         if(list[i].contains("_F5029.03_")){
              fileNames.add(list[i]);
              //System.out.println(list[i]);
    dir = null;
    for(int i=0;i<fileNames.size();i++){
         dir = new File(d+"\\"+fileNames.get(i));
         newLoc = new File(newFileLoc+"\\"+fileNames.get(i));
         if(dir.renameTo(newLoc)){
              System.out.println(dir + " is moved to "+ newLoc);
         }else {
              System.out.println("***** " dir " is not moved to "+ newLoc);
         dir = null; newLoc = null;
    for(int i=0;i<list.length;i++){
         dir = new File(d+"\\"+list[i]);
         dir.delete();
    class ExtensionFilter implements FilenameFilter {
    private String extension;
    public ExtensionFilter( String extension ) {
    this.extension = extension;
    public boolean accept(File dir, String name) {
    return (name.endsWith(extension));
    Thanks for replying .......

Maybe you are looking for