Need help - Create an application to loop through folder of images & insert

Hi,
We have a requirement to loop through a folder of images (around 1000) and insert all of them to a database. What is the best way to approach this. I am new to Swing, so looking for a bit of direction (not for anybody to write the code..I can do that :). Ideally, the user would be able to select all of the images they would like to upload.
Any feedback much appreciated.
Thanks.

what you don't understand is that there is rarely a single straightforward solution,
due to the various customizations available, so most regulars test their solutions
just to make sure it works. This takes time - perhaps only a few minutes, sometimes
significantly longer.
how do you think we feel when we click on another forum, only to find a/the solution
posted there some hours earlier?
our time totally wasted, trying to help an inconsiderate arsehole
keep going through life with no consideration for others - your kind are the first ones
to go when 'downsizing' - and the current financial situation is looking good for that.
(free tip: find yourself a good streetcorner now)

Similar Messages

  • Need help creating a certain Thumbnail Gallery

    This is the website that has the gallery that I'm trying to
    build:
    Howcast.com
    I've successfully created the section of the application
    which populates the stage with thumbnails from a XML file.
    Now, I'd like to spruce it up a bit and create an endless
    scrolling capability which loops an array over and over again with
    the click of the Previous or Forward button. This action will show
    5-7 thumbnails on the stage at any given moment.
    How can I code the application to loop through an array of
    thumbnails?
    How do I create this application to show the motion of
    thumbnails scrolling?

    You could embed your wmic command in a batch file like so:
    @echo off
    set LineNo=0
    for /F "tokens=1,2" %%a in ('wmic desktopmonitor get screenheight^, screenwidth') do call :Sub %%a %%b
    echo Horizontal resolution=%Hor%, vertical resolution=%ver%
    goto :eof
    :Sub
    set /a LineNo=%LineNo% + 1
    if %LineNo%==2 set Ver=%1 & set Hor=%2
    A faster and more elegant method uses his hybrid script:
    @echo off
    set Scr="%temp%\TempVBS.vbs"
    (  echo Set oWMIService = GetObject("winmgmts:\\.\root\CIMV2"^) 
       echo Set cItems = oWMIService.ExecQuery("Select * From Win32_DesktopMonitor",,48^) 
       echo For Each oItem In cItems 
       echo    WScript.Echo oItem.ScreenHeight, oItem.ScreenWidth
       echo Next) > %Scr%
    for /F "tokens=1,2" %%a in ('cscript //nologo %Scr%') do set ver=%%a & set hor=%%b
    del %Scr%
    echo Screen resolution = %hor% x %ver%

  • Uber Noob Needs Help Creating website!

    I need help creating my webpage: It has a textbox on it were
    the user enters a URL and it then redirects the end user to that
    URL when they press the GO Button. It also has a check box saying
    "Hide my IP", If the end user clicks this box and then clicks go
    they will be directed to the website they stateted in the Textbox
    but this time it shall mask there IP Address so they can bypass
    proxys and surf anonomosly. Please can someone give me some HTML
    code i could use for this site or a Link to a website that can give
    me the code.

    I assume the application is connecting to Oracle using an application ID/password. If so, check to see if that user has a private synonyn to the table. If so drop it since you have a public synonym.
    Verify that the public synonym is in fact correct. Drop and recreate the public synonym if you cannot select against the synonym name using an ID that can perform select * from inhouse.icltm where rownum = 1. That is if this other user cannot issue select * from icltm where rownum = 1 without an error.
    Check that the application ID has the necessary object privileges on the table.
    Queries you need
    select * from dba_synonyms
    where table_owner = 'INHOUSE'
    and table_name = 'ICLTM'
    You may find both public and private synonms. Either fix or delete. (Some may reference someelses.icltm table if one exists)
    select * from dba_tab_privs
    where table_name = 'ICLTM'
    and owner = 'INHOUSE'
    Note - it is possible to create mixed case or lower case object names in Oracle by using double quotes around the name. Do not do this, but do look to see that this was not done.
    You could also query dba_objects for all object types that have the object_name = 'ICLTM'
    HTH -- Mark D Powell --

  • HT2480 I need help syncing my computer outlook email (through Yahoo) with my Iphone. when I delete an email on my computer is it still in my inbox on my phone.  Any help is appreciated.

    I need help syncing my computer outlook email (through Yahoo) with my iphone.  When I delete an email on my computer it is still in my inbox on my phone. Please help.

    Your computer is probably set up to access your Yahoo mail using POP3. POP3 does not synchronize with the server. For full synchronization, you will need to use IMAP instead. See the Yahoo mail help pages for instructions on how to configure your mail client.

  • Help needed to create desktop application background using javaFx.

    Hi,
    i need to create background for my desktop application in JavaFx. It have top side bottom menu bars to place icon buttons for my app. The whole scene need to resize. I had tried this using
    JavaFx composer. But my issue is like in java swing i can not able to create different panels and set different styles. Please help me on this issue.
    Thankyou.

    Hi mate take a rectangle and fill it to scene width !
    use fill gradient and bind it to your main scene.width
    for example :
    Rectangle {
    fill: color.Blue
    stroke: LinearGradient {
    startX: 125.0, startY: 0.0, endX: 225.0, endY: 0.0
    proportional: false
    stops: [
    Stop { offset: 0.0 color: Color.web("#1F6592") }
    Stop { offset: 1.0 color: Color.web("#80CAFA") }
    use appropriate start and offset then bind it to scene width and height.
    width : bind scene.width;
    height : bind scene.height ;

  • Please need Help with web application deployment in Jdeveloper 12c

    Hi,
    I am desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!!
    I created a project in jdeveloper and created a jsp page inside the project, all what i want is to run that page!
    I followed the instruction here: Deploying Fusion Web Applications , I don't really know if i did it right or wrong, the document is too detailed and not understood clearly.
    I am a newbie oracle user, and trying to build jsp web application connected to oracle database. application deployment fails it says: cannot run application error deploying IntegratedWeblogic..
    please could you tell me the steps of application deployment in Jdeveloper 12c?
    what deployment profiles I need to create (ear, war , mar)?
    what deployment descriptor I need for my app to work?
    please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .
    thank you

    hi Timo,
    I am building a local web application, meaning the server is internal and will not connect to the web, only to local pcs via network. the application will insert/select data from the database server. My company wants to embed oracle technology on the datatabse and that what am trying to. I am not that expert in java and oracle in general, my main knowledge are in php, html and mysql programming. through my long internet research a lot has recommended jsp with html to be a good choice.
    At beginning I played around with ADF faces, I found it annoying because I prefer coding than using drag and drop interfaces, which always create unwanted results.
    Also am not that professional java programmer, i started learning jsp and found it easier.
    What I am thinking of is to make a web based application that works in browsers (like php), this application has forms to insert data, and also has forms to output data for printing. that's all. I tried to make it in php, but through my little knowledge and internet researches it seems php does not work with oracle and java is the recommended choice (or it works with php but too complicated to make it)
    any recommendation will be much appreciated
    thank you

  • Need help in quering table in loop

    I have following scenario and need some help:
    I have Table A from there I need to select NAME in LOOP and query Table B with each name.
    Table B can give me more than one record per call and then I have to select the best record and update the Table A with Table B values (best row).
    I have created a global temp table and insert the table B results in that table and then loop through Temp table to decide which record is best. Then update the Table A.
    This solution is working but is very slow. I have created indexes on all the tables but still very slow. Is there any solution to make it fast?
    Thanks

    skas wrote:
    I have following scenario and need some help:
    I have Table A from there I need to select NAME in LOOP and query Table B with each name.
    Table B can give me more than one record per call and then I have to select the best record and update the Table A with Table B values (best row).
    I have created a global temp table and insert the table B results in that table and then loop through Temp table to decide which record is best. Then update the Table A.
    This solution is working but is very slow. I have created indexes on all the tables but still very slow. Is there any solution to make it fast?
    ThanksDon't use PL/SQL loops, don't use GTT's, do it in plain sql. If you post the table descriptions and some sample data (preferrably in the form of cretate table and insert statement) and explain how you determine "the best record" in table B I'm sure that someone here could help you with the requirements.
    John

  • Need help creating landscape in AE

    Hi, I need to create an animation of a train moving through different landscape scenes. I want the hills to be an actual 3D rendering with the train moving through them but I am unsure how to do this. I am familiar with 3D and can create the hills in my 3D application but how do I get my 3D hill into AE so the train, camera and lights etc. can interact with the hill?
    1. How do i get my 3D hill into AE?
    2. How do I add the train so it goes around the hills?
    3. How do I get the camera and lights etc. to reflect on my 3D hill?

    First of all, it would be very helpful to post an example of the kind of look you're going for or a similar shot you're trying to recreate.  In animation there are limitless ways of making things so it really helps to be very specific.  For now I can advise this much...
    1.  Render your hills out of your 3D application as an image sequence that supports transperancy if you want to layer them or you want the sky to show up behind them.
    2.  If you want the train to go around the hills, it really depends on how you make the train.  Are you also rendering that in a 3D app?
    3.  I don't know what you mean by getting the camera to reflect, but when you make a layer 3D, After Effects shows the Material Options settings that allow you to control how your layers react to different lighting setups.

  • Aperture Workflow - need help creating workflow for photo management

    Hi -
    I currently shoot with a Canon SD890 (point & shoot) and a Nikon D300 (SLR). My photography is either personal photography or street photography. I may use some of my photography for a web project but that should not be considered right now. I shoot jpegs with the SD890 and RAW with the D300. I need to create a workflow that will allow me to manage all of my photos as well as the RAW vs JPEG aspect. Here are a few initial questions:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives?
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    Thanks for your help!

    jnap818 wrote:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives? I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    No, use a single Library. Aperture will have no problems with the various formats or with various different cameras.
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    Actually those date or event driven batches of images are very logically "Projects" in Aperture. Simply name each group of images as you import into AP as a new Project.
    IMO it is not good to import camera-to-Aperture (or direct to any app other than the Finder). Best is to use a card reader and use the Finder to copy images from the camera card to a folder on the computer hard drive.
    Below is my Referenced-Masters workflow:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and cards are preferable.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive. I label that folder with the Project name suffixed with _masters, that way I can always find the Masters if Aperture forgets where they are.
    • Eject CF.
    • Burn backup copies of the original images to DVDs or to hard drives (optional backup step).
    • Eject backup DVDs/hard drives (optional backup step).
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location."
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive DVDs of originals off site.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    I strongly recommend that every Aperture user spend $35 and work through the tutorial CD Apple Pro Training Series: Aperture 2 (Apple Pro Training Series) by Ben Long, Richard Harrington, and Orlando Luna (Paperback - May 8, 2008), Amazon.com. Note that the value is in working the tutorial, not in using the book as a manual.
    Good luck!
    -Allen Wicks

  • Need help on Oracle Application Testing Suite

    Hi,
    I need help on accessing one script into another script in OATS like the way we access methods of one class into another class in Java. I have created 2 scripts (when i do recording they created as a projects in open script editor), now i want to use my first script in second script.
    Thanks,
    VaraPrasad

    I have a similar problem with the OATS v9.20 installation. I did manage to install it on our main load generator (running Windows 2003 Server) but when it came to installing OpenScript on my laptop (XP SP3) the install 'hangs' at 78%.
    I did raise a support call with Oracle about this (there was a bug report generated) but the case is still open.
    I've been waiting to hear when the next version was due (in the hope that this might have been resolved) but by the sounds of it there could still be an issue on WinXP with v9.21?
    For reference I originally logged this with the following in the description:
    The installation looks like it is failing because of a double backslash in a path ending "OATS920\\bin\copyOUI.bat". We then get an error in javaw.exe which when OK'ed then stops the installation at the stage "creating 'Uninstall Oracle Application Testing Suite' in folder 'Oracle Application Testing Suite' ".

  • Need help creating arraylist

    I am trying to help a friend in school with a project and we need some help...
    We need to write a program to estimate how much paint is needed to paint a house. Assuming we know the square feet that a gallon of paint covers, number of coats required, and the dimensions of the wall, window, door, or gable.
    We are using a GUI to enter the data for the different regions.
    We have the GUI created and the hierchy competed. I need some help creating the arraylist to run the program.
    The user will enter a new region by selecting:
    surface type
    width
    height
    then you will be able to add or insert to include this region in the list.
    You will also be able modify, delete, or navigate to existing regions in the list by selecting the appropriate navigigation buttons below:
    ( |< or < or > or >| )
    Classes include:
    PaintEstimatorView
    PainEstimator Model
    Regions:
    Wall
    Door
    Gable
    Window
    And the Approriate Listners
    Each region will have its own height and width which are set when the region is created
    Each region will compute and return its area and the walls and gables will contribute to the surface; windows and doors will reduce the surface.
    each region will calculate its area.
    We need to include a View and Model
    The view will manage the interface and the model will provide the necessary processing.
    responsibilities of the view:
    Instantiate and arrange the windowobjects
    instantiate and initialize the model
    handle user generated events such as button clicks and menu selections by sending message to the model
    represent the model to the user.
    Model:
    Define and manage the applications data(coordinating the activities of several programmer defined classes)
    respond to messages from the view
    We have the GUI completed I just need some help getting the arraylist started to run the program.
    We will need to keep a count and index of all the regions created by the user and you need to be able to shuffle throught them if you need to delete or modify them. You also need to insert windows and doors which will subtract from the total surface area but you have to go back to which ever wall or gable and create the window or door before or after that region.
    If anybody could help it would be greatly appreciated.
    Thanks in adavnce
    Rus

    Sorry, I forgot to add my code last night.
    This is what we have so far.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class TestSwingCommonFeatures extends JFrame {
    private JRadioButton wall, window, gable, door;
    private JButton computegal;
    public TestSwingCommonFeatures() {
    // Create a panel to group three buttons
    JPanel p1 = new JPanel(new GridLayout(2, 2, 5, 5));
    JTextField sqftpergal = new JTextField(8);
         JTextField coats = new JTextField(8);
         JTextField gallonsneeded = new JTextField(8);
         gallonsneeded.setEditable(false);
         p1.add(new JLabel("SQ ft / gallon"));
    p1.add(sqftpergal);
    p1.add(new JLabel("Number of gallons:"));
    p1.add(coats);
    p1.add(new JLabel("Gallons needed:"));
    p1.add(gallonsneeded);
         p1.add(computegal = new JButton("Compute gallons needed"));
         //computegal;
    p1.setBorder(new TitledBorder("Select gallons & coats"));
    // Create a font and a line border
    Font largeFont = new Font("TimesRoman", Font.BOLD, 20);
    Border lineBorder = new LineBorder(Color.BLACK, 2);
    // Create a panel to group two labels
    // panel 2
         JPanel p2 = new JPanel(new GridLayout(4, 2, 5, 5));
    p2.add(wall = new JRadioButton("wall"));
    p2.add(gable = new JRadioButton("gable"));
         p2.add(new JButton("ADD"));
              p2.add(window = new JRadioButton("window"));
              p2.add(door = new JRadioButton("door"));
                   p2.add(new JButton("Remove"));
    p2.add(new JLabel("Width"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Insert"));
         p2.add(new JLabel("Height"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Delete"));
    p2.setBorder(new TitledBorder("Controls"));
    ButtonGroup radiogroup = new ButtonGroup();
    radiogroup.add(wall);
    radiogroup.add(gable);
         radiogroup.add(window);
         radiogroup.add(door);
    //panel 3     
         JPanel p3 = new JPanel(new GridLayout(2, 1, 5, 5));
    p3.setBorder(new TitledBorder("Section Selection"));
         p3.add(new JButton("<|"));
              p3.add(new JButton("<"));
                   p3.add(new JButton(">"));
                        p3.add(new JButton("|>"));
    p3.add(new JLabel("Count"));
    p3.add(new JTextField(4));
         p3.add(new JLabel("Index"));
    p3.add(new JTextField(4));
    // Add two panels to the frame
    setLayout(new GridLayout(3, 1, 5, 5));
    add(p1);
    add(p2);
         add(p3);
    public static void main(String[] args) {
    // Create a frame and set its properties
    JFrame frame = new TestSwingCommonFeatures();
    frame.setTitle("TestSwingCommonFeatures");
    frame.setSize(600, 400);
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    private class UpdateListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Update button was clicked");
    private class NavListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Nav button was clicked");
    // Create a list to store data
    java.util.ArrayList paintList = new java.util.ArrayList();
    This is the GUI for the project that we have come up with. I have to write the arraylist for inside the model.
    I have tried a couple different things but have been unsuccessful getting it to work. All I am looking for is a start of the arraylist I will try to figure out the rest myself.
    Thanks

  • Please I need help in upgrading applications

    Please I need help in upgrading my pdf-notes for ipad. it seemed like somebody hijacked my Apple ID, I had since solve the problem with Apple, I still have my original email address but I was unable to upgrade all applications I bought before my username was hijacked and pdf-notes is one of the applications. kindly advice me on what to do to upgrade.
    Thanks. Jimmy

    Okay Demo.  My theory is that accessing iCloud if apps were backed up to it can be redownload end then updated. I am thinking that with the new apple ID the iCloud account may only recognize the high jacked ID. I don't know if I made it clearer but I can do some digging. I don't like to see people using Apple devices having a tuff time. Not cool.

  • Need help in resolving CONNECT BY loop in user data in Oracle 9.2.0.5 Ver

    Hi Everyone,
    Below are the scripts to reproduce the error
    CREATE TABLE TESTING
    C1 NUMBER,
    C2 NUMBER,
    GRP NUMBER
    Insert into TESTING
    (C1, C2, GRP)
    Values
    (1, 2, 100);
    Insert into TESTING
    (C1, C2, GRP)
    Values
    (1, 3, 100);
    Insert into TESTING
    (C1, C2, GRP)
    Values
    (2, 5, 200);
    Insert into TESTING
    (C1, C2, GRP)
    Values
    (3, 11, 200);
    Insert into TESTING
    (C1, C2, GRP)
    Values
    (11, 1, 400);
    COMMIT;
    SELECT sys_connect_by_path(C1,'/') AS C1,C2
    FROM TESTING
    CONNECT BY C1 = PRIOR C2
    I am getting "ORA-01436: CONNECT BY loop in user data" because of Recurssion.
    My Oracle Version is 9.2.0.5, can you guide me how to resolve in 9.2.0.5
    In Oracle 10g I have read that we can achieve through NOCYCLE option
    Can you please guide me how to solve this in Oracle 9.2.0.5 Version
    Thanks in Advance,
    Sankar

    SQL> SELECT     SYS_CONNECT_BY_PATH (c1, '/') AS c1, c2
      2        FROM testing
      3  CONNECT BY  c1 = PRIOR c2 AND (c2 >= PRIOR c1);
    C1                                                         C2
    /1                                                          2
    /1/2                                                        5
    /1                                                          3
    /1/3                                                       11
    /2                                                          5
    /3                                                         11
    /11                                                         1
    7 ligne(s) sélectionnée(s).
    SQL>

  • NEED HELP! uninstall applications downloaded from ...

    NEED HELP! How can I uninstall downloaded applications from Ovi?

    Two methods, go to application folder, select options>organise>tap the app you wand to remove?options>delete.
    Or go to settings>Application manager>Installed apps> select the app you want to remove ,option>remove !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Need help creating many, many users.

    Hi,
    I need to create around 500,000 users in the iFS schema in the quickest possible way.
    The java API will do about 2 a second, which gives me an overhead of a few days?!?
    Any suggestions would be greatly appreciated.
    Thanks, this list has never let me down yet ;o)
    Paul.
    null

    Paul, we have not tested creating that many users in iFS, so we don't know if you will run into any issues. And I don't have any timed stats for creating users through XML.
    But we believe that using the Java API is the fastest way to create users.
    You will want to create the users in batch, and disconnect between batches, as the JVM memory will increase during the create.
    So you may want to create the users 10,000 at a time, and then disconnect and reconnect to create the next 10,000. Set your java MX setting for the JVM as high as you can (say, 768M), and then measure your memory usage for the first 10,000 users to see close to the MX setting the JVM gets.

Maybe you are looking for

  • Reports are not updated on the dashboard

    Hello guys I have created some reports and dashboards in OBIEE. Everything looks good. The only problem is that they are not updated with new data as the days go by. In other words, the next day and the day after when users log in to view the same re

  • Code Groups and Codes for Catalogs

    Hi CRM gurus, how is it possible to replicate in SAP CRM 2007 Codes for Catalogs* from external systems? Does an standard object for replication exist? Thanks in advance, Andrea Ricci *I should replicate codes to be used both in multilevel categoriza

  • I want to put a stylish border around my sign.

    How do I put a border around the sign I made? I made it in text, but could do it in any other app as long as it's free. Thanks!

  • Games/RAM on MacBook Pro 15"

    I have recently purchased a MBP 15" with the base graphics and specs. When I go to play a game, sometimes it really lags, almost to the point of unplayability. The game I'm playing when this happens is Minecraft. I don't know if Minecraft is a RAM ho

  • Workflow - SWC_GET_ELEMENT

    Hi I have created an Attribute on a business object and am trying to get the data held within Workflow container element. I am using the code: "get_property email_confirmation changing container. swc_get_element container 'wf_ini_email' w_email. swc_