[iPhone] Can't download file with FTP

Dear everybody.
I want to download a text file at : ftp://username:[email protected]
Current, I use below code:
NSString *s = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"ftp://username:[email protected]"] encoding:NSUTF8StringEncoding error:pError];
and I try:
NSData *tmpdata = [NSData dataWithContentsOfURL:[NSURL URLWithString:SERVER_NAME]];
But I can't download content of text.
I think NSURL can not get content from ftp protocol
So, please help me download file use FTP.
Thank you very much!

Yes, if I try access with specify the file name as:
@"ftp://username:[email protected]/file.txt"
then I can get content of file.
But I want list and show all file in path: @"ftp://username:[email protected]".
Pls help me

Similar Messages

  • I can´t download files with Real Player whwn I upsated Firefox.

    I was told to update Firefox whichI did. After that I can´t download files with Real Player which I could before I updated.

    You cannot download files to the iPad via Safari.  You download them on your computer and synch them through iTunes.
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • Hi Apple Team, my iphone can't share files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it becoming difficult for me to share.

    Hi Apple Team, my iphone can't share bluetooth files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it difficult for me to share bluetooth files from my mac bookpro to my iphone, unless i attached it through email.
    We need it to be acceptable to all devices.
    Thank you!

    You can tell Apple directly at the link below.
    http://www.apple.com/feedback/iphone.html

  • Makepkg: curl can't download files from FTP servers but wget works

    Hello,
    I've installed Archlinux in a VMware workstation. When I try to build a package which wants to download it's source files from a FTP server (eg. Eagle) curl fails to download the file with the following error message:
    ==> Prüfe Buildtime-Abhängigkeiten...
    ==> Empfange Quellen...
    -> Lade eagle-lin-6.4.0.run herunter...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 38.3M 0 0 0 0 0 0 --:--:-- 0:01:00 --:--:-- 0
    Warning: Transient problem: FTP error Will retry in 3 seconds. 3 retries left.
    When I replace curl with wget in makepkg.conf and then try to build the package wget successfully downloads the file.
    Can anybody tell me if there is a bug in curl or how to find out why curl isn't able to download from FTP?
    Regards
    Martin

    I cannot connect direct to the internet from hte epub programme.
    Using playbook connected by wifi connection. Went to Gutenburg site. Selected an epub book and pressed download. This was put into the download directory. Opened epub reader and went to 'Select books', opened 'Downloads' folder and the epub book from Gutneburg was there. Selected and installed into the Library.
    Hope this helps
    Regards
    Ross
    Regards to all (except BB)

  • Can't put files with FTP

    I’m trying to transfer a site with Dreamweaver 8
    (Windows) to CrystalTech. I can connect and transfer files okay
    with WS_FTP. Hitting the “Test” button in
    Dreamweaver’s site definition dialog returns a successful
    test. But when uploading the site, the usual progress bar appears
    and disappears rapidly, and no files are transferred. There is no
    error message. The Dreamweaver FTP log is empty. This is the first
    time I have tried to use Dreamweaver’s FTP to transfer a
    site, although I have put files over the LAN before. Here is the
    site definition remote info:
    Access: FTP
    FTP host: josephherl.org
    Host directory: [blank]
    Use passive FTP is checked [as instructed by
    CrystalTech’s website]
    Under “Server Compatibility,” “Use FTP
    performance optimization” is checked, “Use alternative
    FTP move method” is unchecked
    Edit | Preferences | Site | Firewall port is set to 21
    For what it’s worth, the testing server is set up on my
    local machine and works fine. The machine is at my university.
    I have tried:
    using the IP address for the FTP host;
    specifying a host directory [CrystalTech’s website
    says to leave it blank];
    unchecking “Use passive FTP”;
    changing the settings under “Server
    Compatibility”;
    disabling Windows Firewall; and
    double-checking that the local root folder is correct.
    Thanks in advance for your help.
    Joe Herl

    Do you need a testing server? That is, are you building PHP
    pages?
    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
    ==================
    "Joe Herl" <[email protected]> wrote in
    message
    news:ecvl5g$bjp$[email protected]..
    >> HOw do you have the three parts defined in DW (local
    site, remote site,
    >> and
    > > testing server)?
    >
    > Right now I have this:
    >
    > Local info:
    > Site name: Music 313
    > Local root folder: C:\htdocs\chmu313
    > Refresh local file list automatically is checked
    > Default images folder is empty
    > Links relative to document is selected
    > http address:
    http://josephherl.org/chmu313
    [I left it blank;
    > Dreamweaver
    > filled it in automatically when I saved the settings]
    >
    > Remote info:
    > Access: FTP
    > FTP host: josephherl.org
    > Host directory: chmu313/
    > Login: chmu313
    > Use passive FTP and Maintain synchronization information
    are checked
    >
    > Testing server:
    > Server model: PHP MySQL
    > Access: FTP
    > FTP host: josephherl.org
    > Host directory: chmu313/
    > Login: chmu313
    > Use passive FTP is checked
    > URL prefix:
    http://josephherl.org/chmu313
    >
    > [All the information in the "testing server" category
    was filled in
    > automatically when I selected FTP under "Access."]
    >
    > The above configuration works. My previous configuration
    was the same for
    > "local info" and "remote server," but I had the
    following under "testing
    > server":
    >
    > Server model: PHP MySQL
    > Access: Local/Network
    > Testing server folder: C:\htdocs\chmu313\
    > URL prefix:
    http://localhost
    >
    > That configuration did not work.
    >
    > Joe
    >

  • Problem with downloading file from FTP server

    Hello all
    I have uploaded a file from an application i developed and i want to download this file from another application. The code is
    public static void FTPcon() throws FtpException{
       String hostname = "my.ftp.server";
       String username = "myusername";
       String password = "mypass";
       Ftp ftp = new Ftp(hostname,username,password);
       ftp.setHostname(hostname);
            ftp.setUsername(username);
            ftp.setPassword(password);
            ftp.connect();
            ftp.setBinary();
            ftp.download("file.dat");
            ftp.disconnect();
    }The error i receive is java.io.FileNotFoundException: public.dat (The system cannot find the file specified) but the file is on the server.
    Thanks in advance for any help

    Cotton thank you for your reply
    Any other sugestions please?The server disagrees. So...
    - the file does not existThe file exists.I checked it with an FTP client program.
    - the file has a different nameThe file name is correct
    - you are connected to the wrong serverI am connecting to the correct server
    - you are in the wrong ftp directoryThe file is placed in the home directory
    - the ftp library you are using is broken (less
    likely)I am using the library from jscape.I dont think is broken because i can upload the file from the first application.
    >
    FTP isn't somehow broken in Java. I use it all the
    time. The problem is something listed above. I would
    check all of the first four if I were you because
    that's most likely where the problem is.Message was edited by:
    flightcaptain

  • I have downloaded Adobe camera raw 8.4 so that I can open raw files with pictures taken with the Sony a6000 camera.  However it is not opening the images in camera raw.  What can I do?

    I have downloaded Adobe camera raw 8.4 so that I can open raw files with pictures taken with the Sony a6000 camera.  However it is not opening the images in camera raw.  What can I do?

    Close and restart Photoshop if you have not already done so.
    In Photoshop, go to the Help - About Plug-in... menu then choose Camera Raw.  What version does it say there?
    -Noel

  • I am trying to download a ringtone on my iphone, keep getting message "safari can't download file."

    How do I download a ringtone? I keep getting the message "safari can't download file".

    To add a ringtone, download it from your computer and make sure it is a .m4r file. Once this is done, add it to your iTunes library (it will go in the ringtones section). Then sync your phone making sure that it syncs ringtones as well (check it in the ringtones tab).
    Then in your sound preferences on your iPhone change the ringtone.

  • How can I send files by FTP with Oracle Portal?

    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

    Enrique,
    Are you trying to transfer more content from remote locations to expose as items within a portal page? By itself, the Oracle Portal runs within the context of the database so I'm not sure how FTP at the OS level will help. However, if you're attempting to transfer files from a remote PC to upload within the Portal, here are a couple of suggestions.
    Option 1:
    A. Create a portal page.
    B. Convert a region to Items.
    C. When you're challenged to upload a file from the local OS, ensure you've a drive mapped to your remote location and pick the file to upload into the Oracle9iAS Portal.
    Option 2:
    Alternatively, the Oracle9iAS Portal 9.0.2 supports the WebDAV protocol(Web-based Distributed Authoring and Versioning Protocol) allowing endusers with a WebDAV client to upload content into the Portal seamlessly from their desktop.
    Pls. check out:
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_WEBDAV.HTML
    Hope that helps!
    Thanks,
    Sudi Narasimhan
    Oracle9iASPortal Partner Management/Development
    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

  • How can I upload and download files with uiXML?

    I want to implement upload and download files with uiXML. In some previouse topic I got answare to look in AbstractPageBroker class in JavaDOC. I did it but this is a very-very little resolution description for this problem. I think for developers YOU (UIX Team) must in very quick time to put some examples on the NET because this is a nice technology but with adecvate samplase and developers guide it will be dead very soon. I digging this forum for information. I see many many people have same problems about this technology. They like it and want to use and try but documentation is very very poor.
    WE WANT EXAMPLES and separate forum for UIX. I think it deserve this.
    If You have any more detailed documentation would be nice to put on the net. I have uixdemo.zip file but this is in very early fase of development. I downloaded it before fwe months. And now I can't find it anymore on youre site. What happend?

    Attila -
    I went back and re-read the JavaDoc for AbstractPageBroker and MultipartFormItem and put together the following sample PageBroker based on the description from the JavaDoc:
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.share.util.MultipartFormItem;
    import oracle.cabo.servlet.xml.UIXPageBroker;
    * An extension of UIXPageBroker which stores all uploaded
    * files in the temporary directory.
    public class UploadingPageBroker extends UIXPageBroker
    * Override of AbstractPageBroker.doUploadFile() which saves
    * all files to the temporary directory.
    protected String doUploadFile(
    BajaContext context,
    Page page,
    MultipartFormItem item) throws IOException
    // Get the location of the file to create in the temp directory.
    // Of course a real application probably wouldn't upload files to
    // the temp directory - just using this contrived example to
    // demonstrate basic uploading support.
    File file = _getFile(context, item);
    if (file != null)
    // Create a FileOutputStream. Of course, a real application would
    // probably want to buffer the output
    FileOutputStream out = new FileOutputStream(file);
    // Write out the file
    item.writeFile(out);
    // Close up the output stream
    out.close();
    // We can return a value here to add to the PageEvent
    // if so desired.
    return null;
    // Gets the File for the item that we are uploading
    private File _getFile(
    BajaContext context,
    MultipartFormItem item
    // Get the file name
    String name = item.getFilename();
    // If we don't have a file, bail...
    if (name == null)
    return null;
    // Get the path to the temporary directory
    File dir = _getTempDir();
    // Return the File object
    return new File(dir, name);
    // Returns the path to the temprary directory
    private File _getTempDir()
    // Get the temporary directory from the ServletContext
    ServletConfig sConfig = getServlet().getServletConfig();
    ServletContext sContext = sConfig.getServletContext();
    return (File)sContext.getAttribute("javax.servlet.context.tempdir");
    In this sample, each uploaded file is simply saved in the temporary directory. You'll want to replace the code that creates the FileOutputStream for the uploaded file to use whatever OutputStream makes sense for your application.
    BTW - I used the following UIX page to test this out:
    <?xml version="1.0" encoding="UTF-8"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller">
    <content>
    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <contents>
    <form name="uploadForm" usesUpload="true">
    <contents>
    <fileUpload name="uploadedFile"/>
    <submitButton name="upload" text="Upload"/>
    </contents>
    </form>
    </contents>
    </pageLayout>
    </content>
    </page>
    Hope this sample helps with the uploading part of your question. I'll see if I can provide a download sample in a later post.

  • Does Adobe Send allow you to select how many days your files can be downloaded - as with Adobe Send Now? Also, why don't I see the virus scanning message any longer with "Send" versus "Send Now"?

    Does Adobe Send allow you to select how many days your files can be downloaded - as with Adobe Send Now? Also, why don't I see the virus scanning message any longer with "Send" versus "Send Now"?

    We relied upon the "days available for download" to get people to take
    action more quickly. The "virus scanning" progress bar was simply another
    way of knowing this activity was actually taking place - unless this is
    written somewhere in the Adobe Send User Guide.....wherever that is.
    On Tue, Dec 2, 2014 at 12:09 PM, bob.treitman <[email protected]>

  • Can't download files after Snow Leopard upgrade

    Hello all,
    yesterday I upgraded my leopard to snow leopard, since then I cannot download files with safari (also tried firefox, camino). When I click some link it looks like its going to start downloading but it doesn't. Most of the links are .dmg files. I have tried these steps so far but the problem still occurs.
    1) Repair the Disk Permissions.
    2) Downloaded onyx to clean the system.
    3) Cleaned the safari cache and settings, as well as the plugins directory.
    4) installed firefox and camino but they act the same.
    5) I uninstalled iGetter (if I copy the link location and add it to iGetter I can download the file).
    6) I created a new User to check if the problem was system wide or with the user account. The problem is the same in the new user account as well.
    Any ideas what to try next ?
    Thank you all in advance.
    John.
    ps: I have 10.6.2 and safari 4.04.

    Try using your OnyX to clean the LaunchSevices caches, or use Terminal.
    Launch /Utilities/Terminal and copy & paste this at the command line to rebuild LaunchServices:
    Code:
    <pre class="alt2" style="margin:0px; padding:3px; border:1px inset; width:640px; height:34px; overflow:auto">/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user</pre>
    Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart. Let us know
    -mj

  • [HELP] Download file from FTP server

    hi,
    I want to write a java program that can download and upload files from ftp server. Currently I only manage to upload a file to ftp server but i cant download file from ftp server. Here is the source code that only allow user to upload file. Anyone can give me some guidelines so that my program can download and also upload file? thx.
    import java.io.*;
    import java.net.*;
    public class FTPUpload {
    private static final int CTRLPORT = 21;
    private static Socket ctrlSocket;
    private static PrintWriter ctrlOutput;
    private static BufferedReader ctrlInput;
    private static byte[] localHostAddress;
    public final static String DIR = "C:\\zip\\";
    public static void main(String[] args) {
    try {
    String host = "192.168.1.1";
    String loginName = "testuser";
    String password = "password";
    String dirName = "/home/testuser";
    String fileName = "hello.zip";
    ctrlSocket = new Socket(host, CTRLPORT);
    localHostAddress = ctrlSocket.getLocalAddress().getAddress();
    ctrlOutput = new PrintWriter(ctrlSocket.getOutputStream());
    ctrlInput = new BufferedReader(new InputStreamReader(ctrlSocket.getInputStream()));
    ctrlOutput.println("USER " + loginName);
    ctrlOutput.flush();
    ctrlOutput.println("PASS " + password);
    ctrlOutput.flush();
    ctrlOutput.println("CWD " + dirName);
    ctrlOutput.flush();
    ctrlOutput.println("TYPE I");
    ctrlOutput.flush();
    FileInputStream fis = new FileInputStream(DIR + fileName);
    Socket dataSocket = dataConnection("STOR " + fileName);
    OutputStream outstr = dataSocket.getOutputStream();
    int n;
    byte[] buff = new byte[1024];
    while ((n = fis.read(buff)) > 0) {
    outstr.write(buff,0,n);
    dataSocket.close();
    fis.close();
    ctrlOutput.close();
    ctrlInput.close();
    ctrlSocket.close();
    }catch (Exception e) {
    e.printStackTrace();
    private static Socket dataConnection(String ctrlcmd)
    throws IOException,UnknownHostException {
    String cmd = "PORT ";
    ServerSocket serverDataSocket = new ServerSocket(0,1);
    for (int i=0;i<4;i++) {
    cmd = cmd + (localHostAddress[i] & 0xff) + ",";
    cmd = cmd + (((serverDataSocket.getLocalPort())/256) & 0xff)
    + ","
    + (serverDataSocket.getLocalPort() & 0xff);
    ctrlOutput.println(cmd);
    ctrlOutput.flush();
    ctrlOutput.println(ctrlcmd);
    ctrlOutput.flush();
    Socket dataSocket = serverDataSocket.accept();
    serverDataSocket.close();
    return dataSocket;
    }

    Or just use a java.net.URL("ftp://...) ..., get its input stream, and away you go ...

  • Download file from ftp server

    Can I download files from an ftp server by simply using the ip address or https:// url?    I've only gotten this to work by using the "ftp//:" address in previous projects and I'm not getting this to work in many different attempts. 
    Here is one...
     # FTP Config
    $FTPHost =
    "10.10.10.5"
    $Username =
    "admin"
    $Password =
    "12345678"
    $FTPFile =
    "test.log"
    # FTP Log File Url
    $FTPFileUrl =
    "ftp://" +
    $FTPHost +
    "/" +
    $FTPFile
    # Create FTP Connection
    $FTPRequest =
    [System.Net.FtpWebRequest]::Create("$FTPFileUrl")
    $FTPRequest.Credentials
    = New-Object System.Net.NetworkCredential($Username,
    $Password)
    $FTPRequest.Method =
    [System.Net.WebRequestMethods+Ftp]::DownloadFile
    $FTPRequest.UsePassive
    = $false
    $FTPRequest.UseBinary
    = $true
    $FTPRequest.KeepAlive
    = $false
    # Get FTP File
    $FTPResponse =
    $FTPRequest.GetResponse()
    $ResponseStream =
    $FTPResponse.GetResponseStream()
    $FTPReader =
    New-Object System.IO.Streamreader
    -ArgumentList $ResponseStream
    do
    Write-Host
    $FTPReader.ReadLine()
    while ($FTPReader.ReadLine()
    -ne $null)
    $FTPReader.Close()
    # Create FTP Connection
    $FTPRequest =
    [System.Net.FtpWebRequest]::Create("$FTPFileUrl")
    $FTPRequest.Credentials
    = New-Object System.Net.NetworkCredential($Username,
    $Password)
    $FTPRequest.Method =
    [System.Net.WebRequestMethods+Ftp]::DownloadFile
    $FTPRequest.UsePassive
    = $false
    $FTPRequest.UseBinary
    = $true
    $FTPRequest.KeepAlive
    = $false
    # Get FTP File
    $FTPResponse =
    $FTPRequest.GetResponse()
    $ResponseStream =
    $FTPResponse.GetResponseStream()
    $FTPReader =
    New-Object System.IO.Streamreader
    -ArgumentList $ResponseStream
    do
    Write-Host
    $FTPReader.ReadLine()
    while ($FTPReader.ReadLine()
    -ne $null)
    $FTPReader.Close()

    Hi!
    You don't need to specifically use an IP address. E.g can use
    $FTPHost = "myrandomserver.mycompany.com"
    $Username = "admin"
    $Password = "12345678"
    $FTPFile = "test.log"
    # FTP Log File Url
    $FTPFileUrl = "ftp://" + $FTPHost + "/" + $FTPFile

  • Getting error: Safari can't download file intermittently

    I purchased an Ipad (original) for my father in law and it will sometimes give an error ' Safari can not download file' and it will not go to any website. Weatherbug won't connect. Any app that connects to the internet does the same thing. Connecting to the internet thru airport express connected to a dsl modem. Other windows based machine connected to the internet fine. Ideas?

    To add a ringtone, download it from your computer and make sure it is a .m4r file. Once this is done, add it to your iTunes library (it will go in the ringtones section). Then sync your phone making sure that it syncs ringtones as well (check it in the ringtones tab).
    Then in your sound preferences on your iPhone change the ringtone.

Maybe you are looking for

  • MKS PR4000 CONTROLLER driver for labview 8.6

    Hello BZajec, Thanks for your reply. I have set up the instrument via null modem (crossed) RS232 cable and have communicated with the instrument via hyperterminal in Microsoft XP. The only command to which I have had a response is 'v' which has retur

  • Audio Not Working with my iChat Video

    I have been using my iChat with my iSight for over a year and all of the sudden when I am attempting to chat with my pal, the video works, but my audio isn't. What is also strange is that for the last few days, I wasn't even able to get into video ch

  • Error in the report processing unit.

    Hi, we have installed BO Edge 3.1 on SuSE Linux Enterprise Server 10 SP2 (x86_64) under VMware. All works fine, but the scheduling is not stable. We schedule a Crystal Report 10 times, but only 1 or 2 times the run is successfully. The option "View"

  • Display E-Business Suite Navigation in Tree Structure

    Hello: When I login to E-Business Suite the Module display is in Folder format Is it possible to display Tree Structure? When can I get the instruction? Please help Vijay

  • SSM Effort Estimation

    Hi All, Can you please share the components/objects that should be considered while doing Effort Estimation for SSM projects. For Eg :- No. of KPI. Regards, Niksha