Problem with reading files from folders - please help

Hi!
I have 2 folders (folder1 and folder2) on 2 different locations. Now i will say few things about my program.
First folder is input folder. Different applications generate XML files and put them inside folder1.
Then i have my application which i use to manipulate with those folders. Basically, i have 2 threads. One is checking if there are files in folder1 and other thread is moving manipulated files from folder1 to folder2.
I face this problem. XML files are much faster generated then manipulated. Example: for every 3 incoming files into folder1 i have 1 manipulated and stored file into folder2. This way i face problem that some older files are never manipulated, they are stuck in folder1 basically forever.
Could someone help me to solve this problem? I do not know how to select files form folder1 ordered by "date modified time".
Tnx for your time and help!

Do not crosspost! I'll lock this thread.

Similar Messages

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • Problem with NEF files from Nikon D4

    Hi everyone. I find a problem with nef files from my Nikon D4. When files are open in ViewNX2 (free viewer software from Nikon) they are perfect, as shooted... but in ACR they are very different... I use LR4 or CS5 with ACR 6.7 and the difference seems to be linked at D-Lighting function. My impression is that ACR dont read this option and picture are very very dark that original shootings. Anyone have this problem?

    This question used to be answered in the FAQ before they revised it.  So, here we go again.  ViewNX is capable of reading all of the in-camera settings such as, camera profile, saturation, sharpness and other settings.  It is capable of doing this because it is Nikon Software, and they have the ability to program it to read the settings from their raw images.  Lightroom does not read those settings from Nikon cameras or any other brand of camera.  Part of the reason is that different camera makers store those settings differently.
    When I first started using Lightroom I adjusted one of my images that represented what I normally shoot until it looked the way I wanted it.  Then I saved those adjustments as my default settings for the camera.  From that point onward, whenever I import images those settings are automatically applied, and it takes care of the vast majority of my images.  Of course, I still have to make individual adjustments.  But my default settings greatly reduce the amount of how they work that I have to do.
    Active D-lighting is is one of those features that Lightroom does not recognize.  You would be well advised not to use it, or else create a preset to simulate its effect.  It will provide no benefit to your Lightroom work.
    This is a fundamental difference with Lightroom, and something that must be understood and implemented if you are going to use the program effectively.
    I realize this question was asked in the ACR forum and I referenced Lightroom throughout.  But the principle is the same, and the recommended procedure is the same.

  • I am facing a Problem with reading images from database

    Hi everybody..
    any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code... 
                    string connect = "datasource = localhost; port = 3306; username = root; password = ;"; 
                    MySqlConnection conn = new MySqlConnection(connect); // creating connecting string
                    MySqlCommand sda = new MySqlCommand(@"select * from management.add_products ", conn); //creating query
                    MySqlDataReader reader; 
                    try
                        conn.Open(); // Opening Connection
                        reader = sda.ExecuteReader(); // Executing my Query..
                        while (reader.Read())
                            byte[] imgg = (byte[])(reader["Picture"]);
                            if (imgg == null)
                                pc1.Image = null;
                            else
                                MemoryStream mstream = new MemoryStream(imgg);
                                pc1.Image = System.Drawing.Image.FromStream(mstream);
    It says Parameter not Valid... i am reading all the images from database

    I agree with Viorel. You are getting the error because the format of the data is incorrect probably because the data was modify. It may not be the reading of the database the is incorrect, but the application that wrote the data into the database. You need
    to compare the imgg array data with the data before it was written to the database to see if the data matches.  I usually start by comparing the number of bytes which is easier to check then compare the actual to isolate which function is changing the
    byte count.
    An image is binary data.  The standard VS methods for reading and writing data (usually stream classes) default to ASCII encoding which will corrupt binary data.  The solution usually is to use UTF8 encoding instead of the default ascii encoding. 
    Ascii encoding with stream often aligns the data and adds extra null bytes to the end of the data which can produce these type errors.
    jdweng

  • Got a new iPhone today and tried to restore from my old phone using icloud but kept coming up with a message that said problem with my icloud back up please help

    Got a new iPhone today and tried to restore from my old phone using icloud but kept coming up with a message that said problem with my icloud back up please help

    Hi there Clairemcaula,
    You may find the troubleshooting steps in the article below helpful.
    iCloud: Troubleshooting restoring an iCloud backup
    http://support.apple.com/kb/ts4036
    -Griff W. 

  • Help! Problem with reading objects from file

    I wrote a "Library" program for an assignment, and one of the requirements is that the library store all of its information to file upon exit, and reload this information from file when run.
    Well, the writing to file part is working. I'm using a FileOutputStream object and an ObjectOutputStream object. I can tell from the file size of the .dat file that information is going into it.
    But what I can't do is read from file. For that, I'm using a FileInputStream and an ObjectInputStream. I keep getting this exception:
    java.io.EOFException
         at java.io.DataInputStream.readInt(Unknown Source)
         at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source)
         at java.io.ObjectInputStream.readInt(Unknown Source)
         at Library.readDataFromFile(Library.java:350)
         at Library.<init>(Library.java:63)
         at LibraryDriver.main(LibraryDriver.java:6)I looked this exception up and it says it's thrown when a data input stream unexpectedly ends....But I am instantiating the input streams just before I try to read from file:
                            fileInStream = new FileInputStream(libraryFile);
                   objInStream = new ObjectInputStream(fileInStream);
                   Object[] objectArray = new Object[objInStream.readInt()];Both input streams have methods that "return the number of bytes that can be read from this file input stream without blocking". Just for kicks, I tried writing that number to the console.
    For the FileInputStream, I get 404 bytes.
    For the ObjectInputStream, I get 0 bytes.
    So I guess it's a problem with the ObjectInputStream? Anyone have any suggestions as to how I can fix this, please?

    Yep, here's the relevant code from the writeToFile() method:
                          for (int i = 0; i < libraryAuthors.length; i++) {
                        currentAlphaAuthorList = libraryAuthors;
                        for (int j = 0; j < currentAlphaAuthorList.size(); j++) {
                             currentAuthor = (Author) currentAlphaAuthorList.get(j);
                             objOutStream.writeObject(currentAuthor);
                   objOutStream.flush();
                   objOutStream.close();

  • I have a brand computer and I have an ipod nano generation 7. How do you download your music from itunes to your ipod. I did it on the old computer but am having problems with the new computer. Please help. Thanks

    Please help. I have a new computer and an ipod nano 7th generation. I am having problems getting my music from Itunes library to my ipod. How do you do it?

    Hello Sandy
    You can transfer the purchases from your iPhone to your new computer by following the steps in following article.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    If you have music that was not purchased from the iTunes Store, then you will not be able to move it from the iPhone to your computer. Instead you will need to follow the steps in this article that helps with moving the library from the old to the new.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Problem with reading text from .DOC files through java and POI

    I have used a jar file "poi-scratchpad-3.2-FINAL-20081019.jar" and "poi-3.2-FINAL.jar" to read text from a .DOC file. I used the "getParagraphText()" function of the class "org.apache.poi.hwpf.extractor.WordExtractor" to get the text.
    I am able to get the text in the .DOC file but along with that i am getting the following messages/warnings
    Current policy properties
    *     thread.thread_num_limited: true*
    *     file.write.state: disabled*
    *     net.connect_ex_dom_list:*
    *     mmc.sess_cab_act.block_unsigned: false*
    *     mmc.sess_cab_act.action: validate*
    *     mmc.sess_pe_act.block_blacklisted: false*
    *     mmc.sess_pe_act.block_invalid: true*
    *     jscan.sess_applet_act.stub_out_blocked_applet: true*
    *     file.destructive.in_list:*
    *     jscan.sess_applet_act.block_all: false*
    *     file.write.in_list:*
    *     file.nondestructive.in_list:*
    *     window.num_limited: true*
    *     file.read.state: disabled*
    *     jscan.session.origin_uri: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/poi/poi/3.2-FINAL/poi-3.2-FINAL.jar*
    *     file.nondestructive.state: disabled*
    *     jscan.session.user_ipaddr: 10.136.64.153*
    *     net.connect_other: false*
    *     thread.thread_num_max: 8*
    *     file.destructive.ex_list:*
    *     file.nondestructive.ex_list:*
    *     file.write.ex_list:*
    *     jscan.sess_applet_act.sig_invalid: block*
    *     file.read.in_list:*
    *     mmc.sess_cab_act.block_invalid: true*
    *     jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5*
    *     mmc.sess_pe_act.action: validate*
    *     thread.threadgroup_create: false*
    *     net.connect_in_dom_list:*
    *     net.bind_enable: false*
    *     jscan.sess_applet_act.sig_trusted: pass*
    *     jscan.session.user_name: 10.166.64.201*
    *     jscan.session.user_hostname:*
    *     file.read.ex_list:*
    *     jscan.sess_applet_act.sig_blacklisted: block*
    *     jscan.session.daemon_protocol: http*
    *     net.connect_src: true*
    *     jscan.sess_applet_act.unsigned: instrument*
    *     mmc.sess_pe_act.block_unsigned: false*
    *     file.destructive.state: disabled*
    *     mmc.sess_cab_act.block_blacklisted: true*
    *     window.num_max: 5*
    Below the above messages/warnings the data is getting printed. Only the text part of the data is retrieved not the fonts, styles and bullets etc.
    Can anyone explain me why I am getting above warnings and how can I remove them. Is it possible to fetch the text depending on delimiters.
    Thanks in advance,
    Tiijnar
    Edited by: tiijnar on May 21, 2009 2:45 AM

    The jar files which were used are downloaded from http://jarfinder.com. Those jars created the problem of displaying those messages on console. I downloaded APIs from apache.org and used them in my application. Now my application is running good.
    Tiijnar

  • Problem with reading file extensions from a Fat 32 Drive

    I have been copying image files from my imac 24" OSX 10.6.8 to a Maxxtor One touch external USB drive, the drive is FAT 32 format for a PC. My wife then connects the same drive to her laptop which is running Windows 7. She then sorts the images into different folder gives me back the drive to have more loaded to sort. The problem is when I get the drive back all the image files have a funny little box behind the file extension and the preview icon is blank with a exe in green, the file info says it's a Unix extension.
    I tried to remove the little box and open the .tif file or .jpg files and all I get is a image is not readable. The same drive can be mounted back to my wife's laptop and the images open up just fine in Windows media viewer.
    What's going on here and how do I fix and prevent this from happening again?
    Thanks!
    Pat

    So No one has any ideas on how this is happening and how to go about repairing the problem.
    The trouble as I see it comes up once she moves the files into another folder on Maxxtor drive when it's hooked up to the Win 7 laptoop. The Data then is unuseable on my Mac from that point on.
    I need to know WHY so I can aviod this from happening again, and how to fix currently there is 250 GB of image files I can not access on my Mac and I still have about 2 TB of image files to go through, and THEY ALL NEED TO BE ACCESSABLE.
    Anybody?

  • Problem with reading String from Xlsx file.

    Hi! I am trying to read string and numerical data from an xlsx file and trying to display its contents in a word file. I tried converting it to a .lvm file too. On using the "Read From Spreadsheet" tool, I get random characters as output. On using " Read From Measurement File" tool, I am getting an error saying "Error 100 occurred at Read From Measurement File->Untitled 1". What do I do? At the end I need to display the output, row by row, in a Microsoft Word file. I am so lost. Please Help.
    Solved!
    Go to Solution.

    bsvare wrote:
    labview currently does not read directly from an xlsx file. If you convert the xlsx to an xls file first, then you can use the read from spreadsheet tool to load the data from the file.
    Hey, I tried doing that. It still just gave the values 0.00 in all the cells of the indicator array. Plus my file has string in it also. The data type in the spreadsheet was "general". Here in the tool, it is "Double". I changed the tool data type to string and spreadsheet to text but I only got gibbrish for my efforts.
    Thanks anyway!

  • Help.....problem with obtaining files from a directory

    Anaybody knows how to obtain list of files from a directory from j2me
    as in j2se ?

    I don't think it's possible because a MIDlet lives isolated from the rest of the device's filesystem. It can only store persistent data on the Record Media Store, which is unique for each MIDlet.

  • Problem with Reader file when we try to save a pdf version of filled in file.

    We currently create fillable forms in Acrobat XI and enable them for fill-in with Acrobat Reader.  Our end users are able to key information and save it to the enabled pdf file with Reader, but they want to create a protected version of the form so nothing can be modified once they have approved it.  They have been creating "locked" pdf versions of the completed form using CutePdf software.  The PDF files they are creating open fine with Acrobat Pro XI or our free FoxIT reader, but when we try to open the files they created with CutePDF with Acrobat Reader, they are quite distorted.  According to users, this worked with older versions of Acrobat Reader.  Please let us know if you have any suggestions (other than switching from Acrobat Reader to the free FoxIT reader.
    Thanks for the help!!
    Ken K. - 2191

    Can't endorse FoxIt or CutePDF, since I don't use either of them, and Adobe doesn't like us endorsing thrid party products in their forums anyway. On top of that I know several people who had really bad adware experiences with FoxIt, so I'd say stay away from it.
    Most likely neither of these software developers has updated THIER software to work with Acrobat/Reader XI and the problem lies with them, since PDF is an Adobe format and they must follow the lead from here, not vice-versa.

  • Reoccuring HANGING problem with transferring files from old MACBOOK

    ok, so I recently bought a iMac and i wanted to transfer my music and photo files from my older (waterdamaged a while back but still works fine) macbook. I've tried basically every method to try and get this done.
    I've tried migration assistant, transferring the files through a shared wireless network, through firewire/disk target mode, but all of those methods i tried resulted in hanging very early on in the transferring and copying operation.
    I believe it must have something to do with my macbook's hard drive, but i have no idea what to do at this point. Could someone please help me?

    the thing is tho, the hard drive had no problems copying and transferring for over a year after the damage, while i continued to use it. I don't a reason why it wouldn't work now when i finally want to move a larger number of files at once (itunes music folder, iphoto library)

  • Problems with trial un-installation. Please help

    Some time ago i tried adobe photoshop CS4, and used the trial till it expired. About a month afterward I wanted to delete the files from my computer. I was rather unfamiliar with how un-installers worked, and I did not know they existed. I simply went to my finder, typed photoshop, and deleted most of the files. As it turns out, i deleted the re installer, or how ever that works. I recently received photoshop CS4 extended as a gift and I attempted to install it. This was unsuccessful, the first screen that came up with the installer said I still had files from the trial on my computer, and that i should un-install them. I was told by someone who knew more about adobe products that I had to go to utilities to uninstall it . I tried this and it said critical files were missing, and I need to reinstall from the original media. In that last month or so I have found NO solution to this problem, and I am afraid to delete any other files. I could not find any help on the adobe site, and since i have not registered my product( since I have not installed it) i cannot get direct support from adobe. Please help all I want to do is use photoshop and I hate to be wasting the money of the people who bought it for me. Can anyone give me a solution to this mess?

    Try downloading and running the CS4Clean Script:
    http://www.adobe.com/support/contact/cs4clean.html
    Starting with CS3, you MUST use the Adobe Uninstaller that gets installed in Applications/ Utilities/ Adobe/.
    Some users who just dragged the Photoshop folder to the trash or deleted files nilly-willy have been forced to back up their drive, wipe it clean, and install the OS and all applications from the original media.  You may luck out and get away with just the CS4Clean Script.  Good luck.

  • Problems with Servlet  to JSP communication please help!!!

    Hello All ,
    we have different web applications running
    e.g.
    We have 2 webApp named A and B are running and there URL are
    http://localhost:8080/A and
    http://localhost:8080/B
    and we have one common WebApp running at
    http://localhost:8080/common
    Our problem is that whenever a user log in to the system he/she will first call the
    common URL and then enter his user name and password
    and depending on his username we have redirect user to either A or B with his pasword and username as parameter to the request.
    i.e. in common module whenever i get userName and password we call a Servlet to authenticate the user and to detemine which webapp to forward to..
    i have to call jsp accordingly from servlet in common webApp to JSP in different webapp.
    I m wonderning how it is possilble.
    As
    i don't know how to call another webApp using
    RequestDispatcher.forward () method and
    also
    i am not able to set paramters with the request whenever i user response.sendRedirect() method
    I am wondering what could be the way to pass paramer to the request from servlet in one webApp to JSP in another webApp
    Please help its urgent!!!
    thankx in advance

    forward() can't call another webapp.
    There are several ways you could do this.
    1) Share the session object across both webapps and set something as an attribute of the session.
    2) Use a database or file storage to record the transaction, then go to the second webapp, which picks up that info.

Maybe you are looking for