Import Over Network

Hi All
I've just upgraded to iPhoto 7.1.2 and it appears I've lost the ability to import over my network. I store my photos on a 500 Gig Lacie drive so that my wife can access the same pool of photos. has anyone else notice this problem?
Thanks
Tim

I've lost the ability to import over my network
wife can access the same pool of photos
I'm do not understand your question
Are you unable to see the Lacie disk from your Mac?
Or are you trying to share a library (Importing is bringing photos into a library - not accessing them)
accessing and importing are radically different things
LN

Similar Messages

  • Import over network link fails when table and special character.

    I am trying to do an import over the network link. Below is the command I am using to do the import. In the parameter file the table name has "$" sign. Database is on AIX.
    impdp "'/ as sysdba'" PARFILE=par_aml_aud_import.txt LOGFILE=test.log
    PARFILE:
    JOB_NAME=MONTHLY_XYZ_IMPORT
    NETWORK_LINK=XYZ_IMPORT_LNK
    DIRECTORY=XYZ_AUD_IMPORT
    TABLE_EXISTS_ACTION=TRUNCATE
    REMAP_SCHEMA=XYZ:XYZ_AUDIT
    REMAP_TABLESPACE=XYZ_DATA:XYZ_AUDIT_DATA
    REMAP_TABLESPACE=XYZ_INDEX:XYZ_AUDIT_INDEX
    EXCLUDE=GRANT
    TABLES=XYZ.DR$ABC_EFG_CTC1$N, DR$MNO_PQR_CTC1$N
    I have tested this import with following options.
    on the command line TABLES=\"XYZ\".\"DR\$ABC_EFG_CTC1\$N\" ---- (IN THE PARFILE)
    on the command line TABLES=\"XYZ\".\"DR\$ABC_EFG_CTC1\$N\" ---- (WITHOUT USING PARFILE)
    Still my import fails with below error.
    ======================
    ORA-39166: Object ."DR$ABC_EFG_CTC1$N" was not found.
    ORA-39166: Object ."DR$MNO_PQR_CTC1$N" was not found.
    ORA-39166: Object XYZ was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYS"."SYS_IMPORT_TABLE_01" completed with 3 error(s) at 07:46:30
    I had more than 20 tables to import. All the other tables get imported except these tables which have special character. I have confirmed that these tables exists in source database.
    Please advice.
    Thanks
    Shelly

    First hint: don't use as sysdba
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref243
    Instead, create a user with (no more than necessary) export and/or import rights
    user7414922 wrote:
    on the command line TABLES=\"XYZ\".\"DR\$ABC_EFG_CTC1\$N\" ---- (WITHOUT USING PARFILE)Try something like tables=xyz.table\$name
    or
    tables='xyz.table$name'
    TABLES=XYZ.DR$ABC_EFG_CTC1$N, DR$MNO_PQR_CTC1$NSecond table should probably have schema qualifier as well.

  • Fill error -50 Can't import over network using new account

    login as admin and can import music from my PC over wireless net (I just tried it). I set up a new account which is also administrator. As far as I can tell the two accounts are identical. I am leaving the files in their original location and not copying them. Tried importing but i get unknown file error -50. When attempting this on new account, prompts are slightly different, tho. It doesn't prompt me to select from available shares like in original admin account, but i can select network and then available shares manually. I'm using mp3 encoding. Thanks for any help

    Kelly--
    Thanks Charlie. tested theory right away. I made
    new shared folder right on the root c:/ directory.
    Put a song in there with a short name and tried to
    import it. Got same error -50. So maybe that's not
    it. Any other ideas?
    What happens if you don't use iTunes, but just try to copy a file from the Windows share using the Finder? If you still can't copy from the one account, then it's a matter of how the Windows file sharing is set up in that account.
    That error is a pretty general one, and what you're doing involves so many parts of the OS, from networking to authentication, to QuickTime, that anything you can do to narrow it down will help.
    Can you describe in more detail the process you are going through to access the songs on your PC from both accounts? The more detail, the better...
    Remember,... i can import these same files from same
    folders (so, long filename and path isn't and issue
    here) from another account on this mac.
    That points to a setting that's different between accounts. Unfortunately, because of that nature of the error, until you can really narrow it down, it's going to be kind of tough to figure out why this error occurs.
    charlie

  • Importing Over Network: Where Do The Files/Images Go?

    I am a relative Mac newcomer after years of Windows/PCs... have used Adobe Photoshop and PS Elements to edit and organize images and now I'm trying Aperture (thank heavens for a trial version). I'm gonna have a bunch of questions...
    Here's the first one: why do the files I've imported into a project/folder in Aperture vanish the next time I open the program? Could it be because the images are on a different computer on my home network?
    I am running Aperture on a MiniMac that is connected to my network (all wired, in this instance). My images are all stored on the internal HDD on a Dell XPS. Twice now, I have connected to the network, and imported a slew of image files into the project folder I'm building in Aperture. Everything imports fine and I can manipulate the images to my hearts content in Aperture (if slowly... don't recommend a Mini for Aperture but that's a different story altogether...)
    The next time I have opened Aperture, it looks like it's the first time, like I haven't created any projects or imported any files. Nothing is there.
    Have I forgotten to save something? I go to the "file" menu but "save" is not one of the options, I presume that import saving is automatic, ala iPhoto... but... where then is my work from the previous session?
    At the risk of asking too many questions in a single post:
    I would also like to know if there is a way to get Aperture to display RAW files instead of the companion JPEG files when I combine the pair into stacks. I generally shoot RAW with a JPEG (small, basic quality) for reference sake. I only want to see the RAW files when I'm in Aperture, but sometimes Aperture seems to want to display the JPEGs. Is there a preference or something I can set to determine that?
    OK, there's enough questions for now... Thanks,
    --PS

    Driver 69
    That's driver FORTY-9. Hmmm???
    Are you sure you are opening the library you imported into?
    Are you kidding? I'm not sure of ANYTHING <g>
    Aperture will default to the aperture library in the 'Pictures' folder if it can't find the library set under the preferences menu
    Hmmm again. The library I set in Preferences is a folder I created on a high-speed external drive that is hard-wired into the MacMini via Firewire 800. I double clicked on the Aperture library in that folder, and it came back to a fresh folder of images I imported last night. Still no sign of the stuff I imported on Monday.
    But at least I'm getting a clue where to look for stuff...
    As a test, double click on the Aperture Library' in your own home Pictures folder - Import a few pictures - Close Aperture and open it again
    I think I have done the first two steps there -- opened Aperture last night, imported a folder (still on the network, though). I'll have to see what I wind up with when I close / re open it... later today.
    If your new pictures are there - then you are OK
    And if not? I hope they are, I like the way one of them turned out after RAW-tuning it in Aperture. Looks better than the same picture I manipulated in PShop.
    Now what you may need to do is see if you can find the library you imported all the other pictures into.
    Sounds like I have at least a clue where to start looking.
    Always try to keep you pictures locally on the fastest drives you have
    Accessing images over a network is not advised
    Well, there's a big fore-head slap and "d'oh". Maybe that explains why Aperture seemed to be running so slowly? Because the pictures I'm messing with are on another computer? Slap my forehead again.
    Think it'll be faster if I copy them to that 7200rpm external HDD that's firewired to the Mini? I think I'll try that, too.
    Hope this helps
    Brian
    Thanks for the suggestions, Brian, very helpful.
    -PS

  • DataPump Import over Network and Parallel parameter

    I see and understand the advantages of using the Parallel parameter with datapump with dump files. I am trying to figure out is there any advantage to the parallel parameter when importing data over the network? I have noticed theren are sweet spots where parallel and dump files based upon the data. Sometimes ten workers and ten dmp files is no faster if not slower than three. I have not been able to find a clear answer on this. Any advice or explanation would be appreciated.
    Thanks

    I am trying to figure out is there any advantage to the parallel parameter when importing data over the network?Reading data from network is slower than other options available from datapump.
    The performance of Parallel import using datapump import are controlled by I/O contention. You have to determine the best value for performing parallel datapump export and import.

  • Import Data over network link in oracle 11g

    We want to take export of the OND schema in production database and
    import it to the OND schema in UAT database over a network
    link by using data pump,in Oracle 11g.Kindly share the steps.

    Scenario:
    Directly importing the TEST01 schema in the production database (oraodrmu) to test database oraodrmt, over
    a network by using database link and data pump in Oracle 11g.
    Note: When you perform an import over a database link, the import source is a database, not a dump file set, and the data is imported to the connected database instance.
    Because the link can identify a remotely networked database, the terms database link and network link are used interchangeably.
    =================================================================
    STEP-1 (IN PRODUCTION DATABASE - oraodrmu)
    =================================================================
    [root@szoddb01]>su - oraodrmu
    Enter user-name: /as sysdba
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> grant resource to test01;
    Grant succeeded.
    SQL> grant imp_full_database to test01;
    Grant succeeded.
    SQL> select owner,object_type,status,count(*) from dba_objects where owner='TEST01' group by owner,object_type,status;
    OWNER OBJECT_TYPE STATUS COUNT(*)
    TEST01 PROCEDURE     VALID 2
    TEST01 TABLE VALID 419
    TEST01 SEQUENCE VALID 3
    TEST01 FUNCTION VALID 8
    TEST01 TRIGGER VALID 3
    TEST01 INDEX VALID 545
    TEST01 LOB VALID 18
    7 rows selected.
    SQL>
    SQL> set pages 999
    SQL> col "size MB" format 999,999,999
    SQL> col "Objects" format 999,999,999
    SQL> select obj.owner "Owner"
    2 , obj_cnt "Objects"
    3 , decode(seg_size, NULL, 0, seg_size) "size MB"
    4 from (select owner, count(*) obj_cnt from dba_objects group by owner) obj
    5 , (select owner, ceil(sum(bytes)/1024/1024) seg_size
    6 from dba_segments group by owner) seg
    7 where obj.owner = seg.owner(+)
    8 order by 3 desc ,2 desc, 1
    9 /
    Owner Objects size MB
    OND                    8,097     284,011
    SYS                    9,601     1,912
    TEST01                    998     1,164
    3 rows selected.
    SQL> exit
    =================================================================
    STEP-2 (IN TEST DATABASE - oraodrmt)
    =================================================================
    [root@szoddb01]>su - oraodrmt
    [oraodrmt@szoddb01]>sqlplus
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Dec 3 18:40:16 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter user-name: /as sysdba
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select name,open_mode from v$database;
    NAME OPEN_MODE
    ODRMT READ WRITE
    SQL> create tablespace test_test datafile '/trn_u04/oradata/odrmt/test01.dbf' size 2048m;
    Tablespace created.
    SQL> create user test01 identified by test123 default tablespace test_test;
    User created.
    SQL> grant resource, create session to test01;
    Grant succeeded.
    SQL> grant EXP_FULL_DATABASE to test01;
    Grant succeeded.
    SQL> grant imp_FULL_DATABASE to test01;
    Grant succeeded.
    Note: ODRMU is the DNS hoste name.We can test the connect with: [oraodrmt@szoddb01]>sqlplus test01/test01@odrmu
    SQL> create directory test_network_dump as '/dbdump/test_exp';
    Directory created.
    SQL> grant read,write on directory test_network_dump to test01;
    Grant succeeded.
    SQL> conn test01/test123
    Connected.
    SQL> create DATABASE LINK remote_test CONNECT TO test01 identified by test01 USING 'ODRMU';
    Database link created.
    For testing the database link we can try the below sql:
    SQL> select count(*) from OA_APVARIABLENAME@remote_test;
    COUNT(*)
    59
    SQL> exit
    [oraodrmt@szoddb01]>impdp test01/test123 network_link=remote_test directory=test_network_dump remap_schema=test01:test01 logfile=impdp__networklink_grms.log;
    [oraodrmt@szoddb01]>
    Import: Release 11.2.0.2.0 - Production on Mon Dec 3 19:42:47 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "TEST01"."SYS_IMPORT_SCHEMA_01": test01/******** network_link=remote_test directory=test_network_dump remap_schema=test01:test01 logfile=impdp_grms_networklink.log
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 318.5 MB
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"TEST01" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    . . imported "TEST01"."SY_TASK_HISTORY" 779914 rows
    . . imported "TEST01"."JCR_JNL_JOURNAL" 603 rows
    . . imported "TEST01"."GX_GROUP_SHELL" 1229 rows
    Job "TEST01"."SYS_IMPORT_SCHEMA_01" completed with 1 error(s) at 19:45:19
    [oraodrmt@szoddb01]>sqlplus
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Dec 3 19:46:04 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter user-name: /as sysdba
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select owner,object_type,status,count(*) from dba_objects where owner='TEST01' group by owner,object_type,status;
    OWNER OBJECT_TYPE STATUS COUNT(*)
    TEST01 PROCEDURE          VALID 2
    TEST01 TABLE               VALID 419
    TEST01 SEQUENCE          VALID 3
    TEST01 FUNCTION          VALID 8
    TEST01 TRIGGER          VALID 3
    TEST01 INDEX               VALID 545
    TEST01 LOB               VALID 18
    TEST01 DATABASE LINK          VALID 1
    8 rows selected.
    SQL>
    SQL> set pages 999
    SQL> col "size MB" format 999,999,999
    SQL> col "Objects" format 999,999,999
    SQL> select obj.owner "Owner"
    2 , obj_cnt "Objects"
    3 , decode(seg_size, NULL, 0, seg_size) "size MB"
    4 from (select owner, count(*) obj_cnt from dba_objects group by owner) obj
    5 , (select owner, ceil(sum(bytes)/1024/1024) seg_size
    6 from dba_segments group by owner) seg
    7 where obj.owner = seg.owner(+)
    8 order by 3 desc ,2 desc, 1
    9 /
    Owner Objects size MB
    OND                8,065          247,529
    SYS               9,554          6,507
    TEST01               999          1,164
    13 rows selected.
    =================================================================
    STEP-3 FOR REMOVING THE DATABASE LINK
    =================================================================
    [oraodrmt@szoddb01]>sqlplus
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Dec 3 19:16:01 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter user-name: /as sysdba
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> drop database link remote_test;
    Database link dropped.

  • IPhoto stalls on import from network drive

    I have all my family photos on a network disc that we share on all computers in the house.
    I want the photos to stay on this disc so in iPhoto preferences, advanced tab I have removed the checkmark in "copy items to iPhoto library".
    When I choose "import to library" everything goes well, until all the photos have been indexed - then it goes to "finishing import" - and around 50% it stalls... And stalls, and stalls! Nothing happens after 5 minutes, 1 hour or 12 hours.
    I've tried to import over wifi and wired network - same thing. Does anybody have any ideas?!
    When I import, I choose the top-level folder containing around 10000 photos. I thought this amount could make iPhoto choke-up or something, so I tried to import a sub-folder of around 10 photos - and this works! Problem is that there are A LOT of subfolders, so doing them all one-by-one is not really an option. HELP!!! I can't believe that this app. can't handle the amount of photos I have, I know others that have many more...
    Best regards - and happy holidays!
    /Kasper

    Kasper:
    Just a word of warning. iPhoto doesn't like movie files in referenced, i.e. aliased, libraries. If there's a problem with the availability of the source movie file, slow connection, etc. iPhoto will stall at that point and continually ask for the file. I don't know if this is the source of your import problem but I would strongly recommend you have a separate library for your movie files. That will make the other library more stable in the long run.
    Happy Holidays
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Impdp over network: sometimes slow

    Hello,
    I've just made an experience, that impdp over network is sometimes slow and sometimes fast:
    My configuration:
    I have a "source" database (lets say A), with version 11.2.0.1, and two "destination" databases B (11.2.0.1) and C (11.2.0.3).
    The data size is about 100 GB. Import from A into B needes about 4.5 hours, and import from A into C takes about 1.5 hours.
    The data which is moved are identical. I've also checked the wait states, and we have found out, that database B makes a lot of log switches
    during import, which is the reason, why database B is such slow. On database C there are almost no log switches.
    B has log switches frequency about one in 2 seconds. C has aprox. 6 log switches in the first 30 minutes (during DATA load).
    That database B has logswitches, and C not let me think about Direct Load versus External Table Load, which is described in the documentation.
    But this seems different when using network_link: the trace of the DW process does not support this information (but should, as described in 552424.1).
    I think, there are some bugs/features fixed/changed between 11.2.0.1 and 11.2.0.3 regarding load strategy over network_link.
    There might be also a chance, that a initial parameter is different between B and C causing to different behavior, but
    Does anyone have a similar observation? Does anyone know about this "change"?
    Additionals:
    The users have all the same grants, the data are exact equal (by FLASHBACK_TIME), remap_schema and remap_tablespace are used at both.
    Ulrich

    Hello,
    Database A is in archive mode, B and C not.
    The problem is in the data transfer, not at index generation.
    For C, the data transfer is 30 min, Index generation is about 1h.
    For B, the data transfer is about 200 min, Index generation in about 1h.
    I have one new information: We have switched back after this to dumpfile transfer, and interesting: With dumpfile, the import is done with Direct Path.

  • Files deleted over network

    Hi, some of users over the network accidentally deleted a folder from XServe, and he asked if it can be recovered, when someone deletes a file/folder over network OSX reports that "the item will be deleted immediately", is this true? it wont going to be stored in some "Network Trash Folder"? or ".Trashes"? or "Temporary Items"??
    And if it really wont be recovered, is there a way to prevent this in the future? like to tell OSX Server to put all the files/folders deleted over network to be stored in a special folder for a certain time to prevent loosing important files accidentally or by other users??
    Thanks

    Bertrand> This seems a nice idea, but its not exactly what i need, people still need to delete files from the server, but sometimes they delete important things and im looking for a way that the OSX Server keeps the remotely deleted file for a certain amount of time so it can be restored if needed. many times users accidentally delete files from the server and hit the "OK" button without noticing they just delete an important file from the server and not from there HD, for example, in Apple Share IP on OS9 if you delete a file over the network it would keep it in the user Trash and he empties it, and if he for example restarted his computer, the file on the ASIP would be stored in "Network Trash Folder".. why the mighty OSX Server doest have this great ability?!
    Steve> Tapes is great for backup and archiving, but its not what i am really looking for, it has the same problem i have with Time Machine, time machine wont backup a file copied to the server and accidentally deleted within an hour, so Tapes, wont backup a file copied and deleted within a day..
    WelshDog2> just a question: if i dont have any partition on my XRAID, how can i make it backup its self on its own HD's?! is this possible?! it wont solve my problem but its good to know if this can be done..
    Thank you all guys for your replies, i really appreciate it..

  • Adding artwork over network

    I get a strange thing: my library (of pretty much 160 kbps AAC) is on a network drive; currently ~10mbps link. If I import to the library on that drive: all good.
    However if I then add artwork, then typically the smaller songs (2 minutes or less, although this is just a guide) become unplayable and I have to burn them again. If I import them locally, add artwork and then drag them over to the network drive later, everything's fine.
    Does anyone else get this? If not are you accessing your library over a 100mbps link or something similarly faster than mine?
    Cheers,
    Trystan

    I sort of answered my own quetion - artwork for shared music that is actually playing is displayed by clicking on the triangle in the bar above artwork box, but arwork is not shown for music that is simply selected. This is likely due to increased bandwidth of need to transfer images over network; may well disappear as higher-bandwidth home networks become more common. I hope this helps someone.
    -Bob

  • Applet Security over Network

    Hi, I have an Applet that requires access to the system clipboard of the client. I have never had to sign an applet before, and wanted to know if I need to have a Verisign certificate or equivalent in order to distribute this over network where I work.
    The network uses NT authentication so is already secured and trusted, do I really need to go to the expense of getting a certificate just to be able to a small number of staff to use an applet at work? Or is there another way?
    Many thanks in advance
    AMD

    Though there is already a 10 step approach for signing applets, I'll try to explain how you can sign an applet with a self signed certificate (free) and be able to manage your applet on your server so clients do not need to have a policy file on there computer. The only disadvantage of this approach is that a self signed certificate expires after one year, but since you can update your certificate on the server this should not be a big problem.
    create your keystore with keypair:
    keytool -genkey -keystore your_company.store -alias programmer_name
    fill in the information for name company etc.
    export the certificate from the store:
    keytool -export -keystore your_company.store -alias programmer_name -file certificate_name.cert
    Make a JAR file for your classes:
    jar cvf your_applet.jar *.class
    and sign your JAR file
    jarsigner -keystore your_conpany.store your_applet.jar certificate_name
    I always keep my certificates in another store. To this:
    keytool -import -keystore all_your_certificates.store -alias programmer_name -file certificate_name.cert
    Now you have got a signed applet. To post this on a server do this:
    Inside the policy file you can specify the keystore location:
    keystore "http://intranet.mysoft.com/admin/all_your_certificates.store", "JKS";
    grant signedBy "programmer_name"
    {permission java.awt.AWTPermission "accessClipboard";
    permission java.awt.AWTPermission "createRobot";
    permission java.awt.AWTPermission  "readDisplayPixels";
    Place the all_your_certificates.store and policy file on the intranet server.
    The advantage of this way of working is everything can be managed remotely. As you can see, the applets that are signed by the certificate have permission for accessing the clipboard. You can specify different security settings for each certificate in the policy file.
    Every visiter can now access your applet without needing the certificate installed because it can be found on the server.

  • Running a java program over network

    Hi,
    How a java program on a machine can be run without having JRE on the same machine, rather interpreting bytecode over network having JRE on another machine?

    Rahul.Kumar wrote:
    well, so my java program is running on x. Initialy X had JRE and on invoking java program from command prompt, it had looked for JRE at path, set in environmental settings. Now I moved JRE to another machine Y and connected these two machines (X and Y). You have two machines X and Y.
    "Connected" or not has nothing to do with this discussion.
    In X path is set to the JRE on Y. The path on X has absolutely nothing to do with anything on Y.
    Now execute java program on X, theoretically it should work or what is wrong with this?This makes no sense. Presuming you meant Y in the above then the following must be true.
    1. You must have a JRE on Y.
    2. You must have a java application on Y (or one accessible via the file system on Y.)
    3. You must be on Y and start the JRE passing the java application that is on Y to it.
    Notice in the above there is no mention of X. There can be no mention of X.

  • Help! Saving an image to stream and recreating it on client over network

    Hi,
    I have an application that uses JDK 1.1.8. I am trying to capture the UI screens of this application over network to a client (another Java app running on a PC). The client uses JDK 1.3.0. As AWT image is not serializable, I got code that converts UI screens to int[] and persist to client socket as objectoutputstream.writeObject and read the data on client side using ObjectInputStream.readObject() api. Then I am converting the int[] to an Image. Then saving the image as JPEG file using JPEG encoder codec of JDK 1.3.0.
    I found the image in black and white even though the UI screens are in color. I have the code below. I am sure JPEG encoder part is not doing that. I am missing something when recreating an image. Could be colormodel or the way I create an image on the client side. I am testing this code on a Win XP box with both server and client running on the same machine. In real scenario, the UI runs on an embedded system with pSOS with pretty limited flash space. I am giving below my code.
    I appreciate any help or pointers.
    Thanks
    Puri
         public static String getImageDataHeader(Image img, String sImageName)
             final String HEADER = "{0} {1}x{2} {3}";
             String params[] = {sImageName,
                                String.valueOf(img.getWidth(null)),
                                String.valueOf(img.getHeight(null)),
                                System.getProperty("os.name")
             return MessageFormat.format(HEADER, params);
         public static int[] convertImageToIntArray(Image img)
             if (img == null)
                 return null;
            int imgResult[] = null;
            try
                int nImgWidth = img.getWidth(null);
                int nImgHeight = img.getHeight(null);
                if (nImgWidth < 0 || nImgHeight < 0)
                    Trace.traceError("Image is not ready");
                    return null;
                Trace.traceInfo("Image size: " + nImgWidth + "x" + nImgHeight);
                imgResult = new int[nImgWidth*nImgHeight];
                PixelGrabber grabber = new PixelGrabber(img, 0, 0, nImgWidth, nImgHeight, imgResult, 0, nImgWidth);
                grabber.grabPixels();
                ColorModel model = grabber.getColorModel();
                if (null != model)
                    Trace.traceInfo("Color model is " + model);
                    int nRMask, nGMask, nBMask, nAMask;
                    nRMask = model.getRed(0xFFFFFFFF);
                    nGMask = model.getRed(0xFFFFFFFF);
                    nBMask = model.getRed(0xFFFFFFFF);
                    nAMask = model.getRed(0xFFFFFFFF);
                    Trace.traceInfo("The Red mask: " + Integer.toHexString(nRMask) + ", Green mask: " +
                                    Integer.toHexString(nGMask) + ", Blue mask: " +
                                    Integer.toHexString(nBMask) + ", Alpha mask: " +
                                    Integer.toHexString(nAMask));
                if ((grabber.getStatus() & ImageObserver.ABORT) != 0)
                    Trace.traceError("Unable to grab pixels from the image");
                    imgResult = null;
            catch(Throwable error)
                error.printStackTrace();
            return imgResult;
         public static Image convertIntArrayToImage(Component comp, int imgData[], int nWidth, int nHeight)
             if (imgData == null || imgData.length <= 0 || nWidth <= 0 || nHeight <= 0)
                 return null;
            //ColorModel cm = new DirectColorModel(32, 0xFF0000, 0xFF00, 0xFF, 0xFF000000);
            ColorModel cm = ColorModel.getRGBdefault();
            MemoryImageSource imgSource = new MemoryImageSource(nWidth, nHeight, cm, imgData, 0, nWidth);
            //MemoryImageSource imgSource = new MemoryImageSource(nWidth, nHeight, imgData, 0, nWidth);
            Image imgDummy = Toolkit.getDefaultToolkit().createImage(imgSource);
            Image imgResult = comp.createImage(nWidth, nHeight);
            Graphics gc = imgResult.getGraphics();
            if (null != gc)
                gc.drawImage(imgDummy, 0, 0, nWidth, nHeight, null);       
                gc.dispose();
                gc = null;       
             return imgResult;
         public static boolean saveImageToStream(OutputStream out, Image img, String sImageName)
             boolean bResult = true;
             try
                 ObjectOutputStream objOut = new ObjectOutputStream(out);
                int imageData[] = convertImageToIntArray(img);
                if (null != imageData)
                    // Now that our image is ready, write it to server
                    String sHeader = getImageDataHeader(img, sImageName);
                    objOut.writeObject(sHeader);
                    objOut.writeObject(imageData);
                    imageData = null;
                 else
                     bResult = false;
                objOut.flush();                
             catch(IOException error)
                 error.printStackTrace();
                 bResult = false;
             return bResult;
         public static Image readImageFromStream(InputStream in, Component comp, StringBuffer sbImageName)
             Image imgResult = null;
             try
                 ObjectInputStream objIn = new ObjectInputStream(in);
                 Object objData;
                 objData = objIn.readObject();
                 String sImageName, sSource;
                 int nWidth, nHeight;
                 if (objData instanceof String)
                     String sData = (String) objData;
                     int nIndex = sData.indexOf(' ');
                     sImageName = sData.substring(0, nIndex);
                     sData = sData.substring(nIndex+1);
                     nIndex = sData.indexOf('x');
                     nWidth = Math.atoi(sData.substring(0, nIndex));
                     sData = sData.substring(nIndex+1);
                     nIndex = sData.indexOf(' ');
                     nHeight = Math.atoi(sData.substring(0, nIndex));
                     sSource = sData.substring(nIndex+1);
                     Trace.traceInfo("Name: " + sImageName + ", Width: " + nWidth + ", Height: " + nHeight + ", Source: " + sSource);
                     objData = objIn.readObject();
                     if (objData instanceof int[])
                         int imgData[] = (int[]) objData;
                         imgResult = convertIntArrayToImage(comp, imgData, nWidth, nHeight);
                         sbImageName.setLength(0);
                         sbImageName.append(sImageName);
            catch(Exception error)
                error.printStackTrace();
             return imgResult;
         }   

    While testing more, I found that the client side is generating color UI screens if I use JDK 1.3 JVM for running the server (i.e the side that generates the img) without changing single line of code. But if I use JDK 1.1.8 JVM for the server, the client side is generating black and white versions (aka gray toned) of UI screens. So I added code to save int array that I got from PixelGrabber to a text file with 8 ints for each line in hex format. Generated these files on server side with JVM 1.1.8 and JVM 1.3. What I found is that the 1.1.8 pixel grabber is setting R,G,B components to same value where as 1.3 version is setting them to different values thus resulting in colored UI screens. I don't know why.

  • Accessing shared files over network

    I am having some problems with a couple of database files that I access with a Java program over network. Different computers running this program all need access to these files, and my question is if anyone know of a good way to make sure that only one user have access to these files at the time. There is no server software running were the files are stored, they are simply reached through file sharing. Currently I am creating a lock file indicating that someone is editing the files, however if I am unlucky 2 users create that lockfile at the same time and then both get access to the file corrupting it. Anyone experienced this and know of a nice solution to avoid it?

    I am having some problems with a couple of database
    files that I access with a Java program over network.
    Different computers running this program all need
    access to these files, and my question is if anyone
    know of a good way to make sure that only one user
    have access to these files at the time.Use a database server instead.

  • Share Aperture photos over network

    Hallo every body,
    iam searching for a solution, how to share photo over network for a long time, in our company we have 40 macs(imac, mac bookpro) and 3 xserve, vtrak and 30pc. and we have round about 30000 pic they are saved in iphoto library on one of the xserve.
    My Boss wants from me to find a solution to share these photos over network. the mac users must use iphoto to access these photos.
    which program shall i install on the server so that the client users can access the photos from there macs through iphoto.
    at the beginning i used the share library option in iphoto, until iphoto 9.1.1. By iphoto 9.1.1 on the client when i click on the shared library my searching field disappears and i cant search in the shared photos.
    I thought Aperture is the solution, so i shared the aperture library over the network (with afp protocoll) but in order to access the network aperture library, first i need to install aperture on the client and then i open iphoto and from iphoto option i can choose the option access aperture library.
    how can i solve it without to install aperture on the client, is there any iphoto plugin so that i can access aperture library without installing aperture
    or is there somebody uses another solution???
    please help
    best regards
    Tony

    Neither iPhoto nor Aperture is the solution for this.
    The idea of using iphoto on the client machines is wrong, it's just not designed for that use. Iphoto is designed for a family with a point and shoot camera, or even a phone. Aperture is a pro level photomanager. Installing Aperture on all the mchines means you will have to purchase the app for all the machine, you need a site licence.
    Also, it won't work anyway. You can't share an Aperture Library like an iPhoto one an only one user can access the Library at a time. So, one of the users acesses the Library and all the others are locked out.
    Neither are what you need: you need a media server application. A pro level media server. Tell your boss he's fooling himself if he thinks anything else will work reliably.
    Regards
    TD

Maybe you are looking for

  • How To: Sort Numbers in Ascending Order in a Generated List

    Greetings! How do I set up a Generated List of Paragraphs so that it sorts in true ascending order? What I want is: 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 I have tried every trick I can think of with the sort order listed on the reference page. But

  • Windows 8 can not connect RemoteApp on W2K12 RDS, but Windows 7 can connect. Why?

    Hi! Windows 8 can not connect RemoteApp (W2K12 RDS), but Windows 7 can connect. Why? External and internal DNS name is different, the public Cert is mapped to RD Web Access and a RD GateWay Role. The internal cert (issued by enterprise ca) is mapped

  • Error in BAPI for MIRO

    Hi, While using BAPI_INCOMINGINVOICE_CREATE to post an invoice with a purchase order (MIRO), we are getting the error message "Balance not zero: 165.60 debits: 0.00 credits: 165.60". Please help us to detect where the error is. We are entering values

  • Adobe Flash Player and pluggin 16.0 r0 constantly stops working

    For a couple of days now firefox and adobe flash player/pluggin 16.0 r0 will not function properly at all. If I end up on a site like youtube or other sites with similar functions, I get bombarded repeatedly with this message and can't do anything ab

  • Workflow - Header vs. Item level

    Hello, I am looking for some documentation / list of pros and cons of implementing header level workflow vs. item level. I understand that item level is more difficult to implement, but what are the benefits. We are looking at two types of approval,