Use of remote files

I want to fetch a XML file from a remote system, and copy this file to my local computer and use this file in my program. What is the best way for doing this. Is it FTP? What is the syntax for FTP calls in a java program?

Thank you Robin. But I meant that I should fetch the file from my program.
However I found a solution.
ftp://<user>:<password>@<host>:<port>/<url-path>;type=<typecode>

Similar Messages

  • Trouble with remote file sharing

    Hi,
    I'm trying to set up an iMac here in my office so that it can be used for remote file sharing. I'm kinda new at this, so I'm sure I've missed a few obvious details.
    First off, it's connected via AirPort and there's no direct ethernet connection...I was told this shouldn't be a problem, but let me know if this is false.
    I think I have all the right settings on Leopard - file sharing's turned, remote login is enabled, firewall's opened up, and even though there's a dynamic ip address, I've set up a hostname at Dynamic DNS, and I also downloaded their Updater, which seems to be working fine and has been updating the ip address for the hostname I've set up.
    I also went into the router and opened up a file sharing port (a different number than 548, FWIW).
    So far, only computers within the same network have been able to access this iMac. Outside of the network, it can't be reached. Whenever you punch in the hostname (or even the ip address for that matter) in "Connect to Server...," it attempts to connect, but eventually fails. I can't even get to the login prompt.
    What else needs to be done? Any ideas? FWIW, all machines are Macbook Pros or iMacs running the latest Leopard.

    A couple more details: right now I'm near a Mac network, and I do see two Macs under the "shared" tab in my finder window. And when I was at home I could see my G5 there, and was able to log into it from my Macbook. Also, my G5 is set to never sleep.
    Message was edited by: Jimtron

  • Using unattend install files to automate the creation of Win7 pooled VDIs in 2012 remote desktop services

    Hi All,
    I have a problem that I have been working on for the past week and hoping someone can provide the missing link for me.
    Background
    We currently have a 2008 "VDI" environment with both personal and pooled Windows 7 desktops deployed to thin clients. We have just set up our first 2012 Hyper-V server and plan to deploy pooled and personal VDIs under 2012. I have been working
    on the process and successfully created both pooled and personal Windows 7 desktops using the Remote Desktop Services and creating the collections.
    I created the golden image and sysprep'd it (/Generalize /OOBE /Shutdown). During the creation of the Pool collection I manually inputted the Virtual settings (i.e. the OU, etc). I notice there is an option to supply an unattend.xml file with the answers.
    We are deploying the pool into a computer lab in the school for the students to use. I want the pool to revert to the pristine state after the student logs off.
    Problem
    When the user logs into the pooled desktop I notice that the activation for the Windows license has not been run. I am trying to use the unattend file to activate the license before the first log-in. Using the Windows System Image Maker I've install our
    volume license key, but it does not activate. The only option I have to activate it is to run a synchronous command during first login. This can only be inserted in the OOBE phase. When the user logs in the license activates, but when they log out,
    the machine reverts to the pristine state.
    I confess I'm  newbie to unattend installs but I've been reading the docs on line trying to figure out how to change this behavior. I'm also assuming this won't be a problem with the personal desktops pools.
    Any help is greatly appreciated.

    Hi,
    Please make sure to following guide like this link to deploy the virtual desktops
    Windows 8 / Windows Server 2012: Pooled Virtual Desktop Infrastructure
    http://blogs.technet.com/b/askperf/archive/2012/10/31/windows-8-windows-server-2012-pooled-virtual-desktop-infrastructure.aspx
    Regarding to activation, see introduction in this link:
    http://technet.microsoft.com/en-us/library/dn645522.aspx
    Which did you use? for KMS as an example, you have to activate the master\template VM with the Windows version specific KMS Key and make sure that your KMS Server is auto discoverable.
    The snapshot on the automatically created pooled collection VM is taken before KMS activation is initiated from the guest OS. So the KMS activation would take place only after user logs on. once the rollback is enabled, the pooled VM will
    rollback to clean state and may perform the windows activation again when any user logs on to the VM again.
    And you mentioned that you're using WSIM and installed Volume License Key, (I suppose you mean that you've typed the key in the "Product Key Selection" in WSIM), but as I know, we should leave the product key blank if you are using KMS host
    for activation.  
    Yolanda Zhu
    TechNet Community Support

  • Writing into a remote file using URL.

         URL url = new URL("http://144.16.241.110:9090/b.txt");
         URLConnection connection = url.openConnection();
         connection.setDoOutput(true);
         PrintWriter out=new PrintWriter(new BufferedOutputStream(connection.getOutputStream()));
         Writer out =(new BufferedWriter(new OutputStreamWriter(connection.getOutputStream())));
         out.flush();
         out.write('d');
         out.close();
    I am using the following code to write into that file.
    This is compiled and no error comes while compiling.
    But while running I get the following.
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>405 Method Not Allowed</TITLE>
    </HEAD><BODY>
    <H1>Method Not Allowed</H1>
    The requested method POST is not allowed for the URL /b.txt.<P>
    <HR>
    <ADDRESS>Apache/1.3.12 Server at 144.16.241.110 Port 9090</ADDRESS>
    </BODY></HTML>
    How to rectify this.Thanx in advance.
    I am able to read from the same file.

    Thanx
    Is it possible to set permission to a remote file
    using our program? If so give me some sample code.

  • Using old version CS3. Can't "see" both Local and Remote files. Only Local.

    Used to see both Local and Remote files. Worked in Local and then "Put" to the Remote when ready. Only see Local now. Work in Local is saved automatically to the server. Need to go back to the work in Local and Put to Remote. What happened? How do we fix it? Thanks!

    Could you post a screen shot of what you're seeing when you go to...
    Site > Manage Sites > Click the site  you're working on > Edit
    There should be two tabs in the upper left corner of the dialogue box that comes up, Basic and Advanced. Basic walks you through set-up with a bunch of questions and Advanced allows you to just enter the info into the correct fields. If the Advanced tab is open, it should be under the Remote heading where you set your FTP info.

  • Writing to remote files using an applet.

    I programmed a basic game as an applet for a web site, but it really needs some kind of high score functionality.
    I plan to store the high scores in a file in the server. Reading information from the file is no problem at all, but updating the file with new highscores runs into security problems. Obviously I can't simple use a simle file writer to do that. What is the proper way to do this?
    One possibility which came to my mind is to make the applet open a ftp connection to the server and upload the new highscores file to the server. but that would mean hardcoding my password into the applet code.
    Please keep in mind using servlets or any other programs running on the server is out of question.
    Any help greatly appreciated,thanks in advance.

    Why not host this applet on another free server which supports mysql/postgresql/etc and store it in a database? Any hosts/tools needed, just ask - there are several good freeware.
    /DanX

  • Not Working: BlackBerry Link Remote File Access Remove Old BlackBerry from BB ID

    I have: removed my blackberry q10 from blackberry link, wiped my q10, uninstalled and reinstalled blackberry link, have link version 1.1.1.32, blackberry q10 os version 10.1.0.2309 - which whenever I plug in the q10 after removing the device from link, says there is an os update, so I update it, and then it does nothing apart from rebooting the q10, or gives an error saying 'updates not available. Please check internet connection and retry.'.
    Also, I have Logout/login on blackberry link, I know my q10 is activated as I have purchased items from app world, and on the computer the app world site shows that I have a q10 when I sign in. I am using the same BBID and have changed the password on my q10 to see if that made a difference, then signed out and back into link on computer with updated password. I have administrator rights on my computer.
    I can access the q10 from my computer over the same wifi network, and it syncs files fine with wireless sync turned on. It is remote file access not giving the option to connect to my q10. 'BBID *email* isn't associated with a device running Blackberry 10 OS or an error occurred when trying to retrieve your information from the Blackberry ID servers.'
    The problem is that although I have the same blackberry id for link and my q10, no devices show up on the remote file access screen, and I cannot access my files on my computer from my q10, yet I can sync them on my computer over the wifi network. How can I enable Remote File Access?
    A problem could be that I have a Curve 9300 on my BB ID account, so if I could disable this (which I have no idea how to do after a lot of research), this might rectify why link cannot set up remote file access.
    What I haven't done is wiped my q10 and uninstalled all user data from link at the same time, as then I would have to manually reload everything on my q10.
    My q10 shows my computer in the settings\blackberry link\paired devices ,  but I 'cannot view files on *computer*'. Also, link does not show in the file manager. I set up my q10 as a permanent link not a one-off connection.

    No one cares because it's not a z10 (I know because I am having the same problem and no one knows how to fix it and no threads for q10 fix)
    Slàinte.
    Not all things are good.
    Not all things are evil.
    But with an open mind...
    You can see the difference.
    Knowledge is power.

  • Error reading Remote file when the connection is slow

    I have a program that reads a file from a remote server. The file is an xml file.
    This uses URL inputstream.
    This works just fine but when the xml that it reads grow in size, the content of the file is not completely sent to the variable string.
    I have come to a conclusion that slow connection to the server could somehow cause this. The error is intermittent. Sometimes it works, sometimes it doesn't.
    I hope you guys could help me tune this code or if you have suggestions like other ways to read a remote file. Which will work even if the file grows bigger.
    Thanks
    public String readRemoteFile(String fName)
    try
    boolean bolContinue = true;
    URL tUrl = new URL(fName); //create a URL object with the server source file
    //Logger.log("Getting filesize : " + fName);
    InputStream is = tUrl.openStream();
    String strFileSize = "";
    StringBuffer sbXML = new StringBuffer();
    byte[] b1 = new byte[10];
                   int intBytesToDownload = 0;
    int i = is.read(b1);
    strFileSize = new String(b1, 0, i);
    //Logger.log(fName + " --- " + strFileSize);
    try
    intBytesToDownload = Integer.parseInt(strFileSize);
    catch (NumberFormatException nfe)
    Logger.log("Could not read the file : " + fName);
    return null;
    int bytesReadInTrip = intBytesToDownload;
    int bXMLLocation = 0;
    while (bytesReadInTrip > 0)
    bytesReadInTrip = 0;
    bolContinue = true;
    //System.out.println(strFileURLPath);
    tUrl = new URL(fName + "&fileOffset=" + bXMLLocation);
    //Logger.log("reading file1 : " + fName + "&fileOffset=" + bXMLLocation);
    is = tUrl.openStream(); //get Input stream of the server file.
    //continue download till continuation flag is set i.e. input stream
    // is available.
    while (bolContinue)
              byte[] bXML = new byte[intBytesToDownload];
    i = is.read(bXML);
    //Logger.log("i " + i);
    if (i > 0)
    bXMLLocation += i;
    bytesReadInTrip += i;
    String strTmpXML = new String(bXML,0,i);
         sbXML.append(strTmpXML);
    else
    bolContinue = false;
    is.close(); //close the input stream of the input file.
    //Logger.log("bytesReadInTrip : " + bytesReadInTrip);
    //Logger.log("Read file : "+ sbXML.toString());
    return sbXML.toString();
    catch (Exception e)
    Logger.log("Exception while reading the file : " + fName);
    return null;
    }

    well looks that ur run() method is being called more then one time (..)
    why dont u try file method exists() before writing it to ensure that it is not written previously

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

  • How do I use a remote superdrive? I'd like to backup iTunes and iPhoto

    I'd like to be able to use a remote shared drive. I know how to make it shared - but not how to then get another machine to share it!
    I'd like to do remote backups to my mac mini superdrive - I have it there and I can see the disc, but, when I try to get iTunes or iPhoto to back up they only see the local drive.
    Is there some way that I can do this with toast?
    The superdrive on my G5 is faulty, I need to have it repaired. I do have one on my Mac mini that I have shared.
    How do I get my iTunes backup to go to a remote, shared Superdrive DVD?

    Can you not just manually drag the iTunes music files to the other drive and then burn them to the CD or DVD media? I do realize that by doing it this way you will lose all of your playlists but at least you would have copies of all your music and or video files. You could also copy all of your itunes library and related files to the shared folder or some other folder on the mini and then use iTunes on it to do the backup and then simply remove the copied files from the mini when you were done.
    The built in backup that comes with iTunes is only designed to work with the built in drive not a shared drive I believe.

  • Is there a way to reach remote files with KDE? [Solved, I hope]

    I cant reach anything remote any longer. At first I noticed that Kate was unable to open remote files. But there is more, I cant even navigate on my own network. Before the update my network was almost as an internal disk and now its completely useless. The plasma 5 file navigator is a total joke. Network isn't even an option there, only local files.
    Is there a fix to this or will there be updates with a solution? I have tried various tips and installed kio-xxx.
    My current KDE version is 4.14.6.
    Last edited by johane (2015-03-30 07:28:53)

    You wrote that you're on KDE4 in your first post. This would mean you currently have a mix of qt4 and qt5 apps running.
    I know Kate was ported to qt5 already, as well as gwenview, not sure about others. Those won't be able to display the native dialog anymore, because they only include the latest version of the Qt dialog, while you need the older one.
    I remember reading about Kate not being able to read from network files because it needs the qt5 version of the framework to do so.
    The solution to get that and the native file dialogs would be to either
    - update to kde5
    - downgrade the affected apps to the last version which used qt4
    Personally, I currently froze all my kde packages at their kde4 versions, because kde5 was running less that stable on my test machine. This is usually frowned upon, because you're missing out on any security/bug fixes the newer versions might contain.
    But in case of kde5, I'd rather have a stable system that might or might not be vulnerable, than an unstable one.
    Also, updating to kde5 actually reverses the problem from what I remember: you will get the native dialog for all apps already ported to kde5 and the generic one for all that have not yet been ported.
    Last edited by Soukyuu (2015-03-20 23:49:48)

  • VLD-6328 error : Use a flat file as Source in a mapping in OWB 10.2

    Dear all,
    I have created a simple mapping using a flat file in a remote server as a source and a simple table as a target.
    When I try to validate the mapping I get the following warning:
    "VLD-2398: No data file specified. Generated code will use the sampled file name and the file location xxx"
    I use the version 10.2 and I cannot find "Sources" or "Targets" when I use the "Configure" options.
    Any help will be appreciated

    Hi all,
    If you want to validate correctly this mapping you must to :
    1. Right click on the mapping, then Configure
    2. Right click on Sql Loader Data Files, then Create
    3. Verify that the location name is correct and complete the Data File Name
    4. OK
    The validation is now OK.
    I hope it will be help you
    Best Regards
    Samy

  • Wats the use of Listener file in oracle

    wats the use of Listener file in oracle.

    Hi Rajesh !
    The listener.ora file describes the environment within which requests for remote connections are serviced. When the listener process is running on a machine, connection requects are intercepted on the specified ports and passed to the database.
    The listener trained to listen on a certain port , passess connections thru' to ORACLE 9i server when they contain proper authentication details.
    listener.ora file consists of the following elements:
    + Listener's name
    + Protocol addresses that it is accepting connection requests on
    + Services it is listening for
    + Control parameters
    By default, the listener.ora file is located in the $ORACLE_HOME/network/admin directory on UNIX operating systems and the ORACLE_HOME\network\admin directory on Windows NT.
    It is possible to configure multiple listeners, each with unique name, in one listener.ora file FYI !!
    ~ Chinmay
    ~ Happy Working !!

  • DW8 grabs remote file when I try to edit local file

    DW8 acts like it was programmed this way, but it is not
    correct behavior. Perhaps someone can shed some light on this for
    me.
    I have the local website on a mapped network drive to a
    different server, and the remote (live) site is on another server
    only accessible via FTP. When I have the Files View drop-down set
    to Local View and the [Connects to remote host] button is NOT
    depressed, I should be able to double-click an .htm file and have
    it open up for editing. So, I do that and it then asks if I want to
    Get Dependent Files. I always say NO to this question. When the
    file opens, for some reason it has grabbed the REMOTE version from
    the live server (via FTP, I assume) without telling me it is doing
    that, and it has overwritten the local copy of the file. This is
    bad because other people in the office use different web editors,
    and they did work on that file prior to me trashing it....rats!!!
    WHY is DW8 grabbing the remote file for editing when I don't
    want it to? I want to edit the dang LOCAL file like I expect!! What
    am I doing wrong? Or is DW8 doing it wrong, and everyone in the
    world just expects it to be that way? How can I edit ONLY the local
    version of a file that exists on the remote server? I found that if
    the file is NOT on the remote server, then it simply opens the
    local file for editing as usual. I do not remember MX2004 acting
    this way because I never had that problem prior to my DW8 upgrade.
    Perhaps a clue is the dialog box that pops up asking if I
    want to "get dependent files"...the word GET is suspicious to
    me....
    HELP!!!! TIA!

    CI/CO uses the remote site as the resource for files, not the
    local site.
    The scheme is -
    1. You check out from the remote site
    2. You edit and save intermediate steps locally
    3. When editing is finished, you check in to the remote site
    This way, nobody can GET a file that you have already checked
    out until you
    check it back in.
    When you double click a local file in the File manager, if
    that file is NOT
    checked out to you, it will be checked out to you FROM THE
    REMOTE site. If
    it is checked out to you, it will open from your local site.
    > That action
    > doesn't make sense.
    Unfortunately, it makes complete sense.
    Read your help files on CI/CO again....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "i.am.mushu" <[email protected]> wrote in
    message
    news:[email protected]...
    > Yes I do. Why does that make it grab the remote file
    though?? That action
    > doesn't make sense. I want to be able to edit the file
    locally (mapped
    > network
    > drive) then when I do a PUT or CheckIn I want it to go
    to the remote
    > server.
    > When I am working on it locally, I want the .LCK file to
    exist as a
    > warning
    > that it is being worked on currently. Nothing in this
    outline suggests
    > that it
    > makes sense for DW8 to go grab the REMOTE file and
    OVERWRITE the local
    > file
    > before opening it for me to edit...?!?
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Do you have Checkin/Checkout enabled?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "i.am.mushu" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > DW8 acts like it was programmed this way, but it is
    not correct
    > > behavior.
    > > Perhaps someone can shed some light on this for me.
    > >
    > > I have the local website on a mapped network drive
    to a different
    > > server,
    > > and
    > > the remote (live) site is on another server only
    accessible via FTP.
    > > When
    > > I
    > > have the Files View drop-down set to Local View and
    the [Connects to
    > > remote
    > > host] button is NOT depressed, I should be able to
    double-click an .htm
    > > file
    > > and have it open up for editing. So, I do that and
    it then asks if I
    > > want
    > > to
    > > Get Dependent Files. I always say NO to this
    question. When the file
    > > opens, for
    > > some reason it has grabbed the REMOTE version from
    the live server (via
    > > FTP, I
    > > assume) without telling me it is doing that, and it
    has overwritten the
    > > local
    > > copy of the file. This is bad because other people
    in the office use
    > > different
    > > web editors, and they did work on that file prior
    to me trashing
    > > it....rats!!!
    > >
    > > WHY is DW8 grabbing the remote file for editing
    when I don't want it to?
    > > I
    > > want to edit the dang LOCAL file like I expect!!
    What am I doing wrong?
    > > Or
    > > is
    > > DW8 doing it wrong, and everyone in the world just
    expects it to be that
    > > way?
    > > How can I edit ONLY the local version of a file
    that exists on the
    > > remote
    > > server? I found that if the file is NOT on the
    remote server, then it
    > > simply
    > > opens the local file for editing as usual. I do not
    remember MX2004
    > > acting
    > > this
    > > way because I never had that problem prior to my
    DW8 upgrade.
    > >
    > > Perhaps a clue is the dialog box that pops up
    asking if I want to "get
    > > dependent files"...the word GET is suspicious to
    me....
    > >
    > > HELP!!!! TIA!
    > >
    >
    >
    >
    >
    >
    >

  • Using Apple Remote Desktop to Deploy Filemaker Pro 10 /Create Filemaker pkg

    I need to deploy Filemaker Pro 10 to a number of Macs in our office, all of them with Apple Remote Desktop installed.
    I have the FileMaker Pro 10 installation file (it's listed as an .app) and the text file called "assisted install."
    If I have these two files in the same folder, I can run them and it will allow myself (or the user) to install FileMaker with only a few "continue" clicks.
    I am, however, trying to streamline the process by creating a package (.pkg) so that I can deploy the software using Apple Remote Desktop (I'm using version 3.2.2).
    I am, however, a Package Maker novice, and am not sure if this is more pain than it's worth.
    Is there anyone out there who has done or tried to do something similar to what I'm trying?
    Is there another way using Apple Remote Desktop (besides controlling each individual pc to install the program) to deploy FileMaker Pro 10?
    Thanks in advance for any help.

    Thanks for the suggestion. Since I don't want to spend money, I decided to go with InstallEase from LanREV.
    As I was getting ready to write this off as done, one possible problem occured to me.
    When FileMaker installs, it automatically puts in the username as whatever the current installing user is. You might not be able to answer this, but I'll ask anyway.
    If I use InstallEase to take a snapshot of my system before install, then after, and use that package to deploy... is it going to show my name as the username on everyone's systems, or will it figure it out on its own?
    I'm going to see if I can scrounge up a test mac to see if my theory proves correct or not, but in the meantime, feel free to answer if you already know what will happen.

Maybe you are looking for