Results 1 to 4 of 4

Thread: access to ftp server

  1. #1
    Join Date
    Mar 2008
    Location
    Morocco
    Posts
    47
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default access to ftp server

    Hi..
    I want to use the webkit modul for an application .. it ' s about presenting some data on a map using google map API ..
    till now everythg seems good!!
    i would like to know if it s possible to access to an ftp server and modify the contain of a file ( I have to modify the xml file that contains my data that should be displayed on the map .. and that from my Qt application)??
    if some one have an idea ??
    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    541
    Thanked 83 Times in 78 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: access to ftp server

    Did you try QFtp? Download file, modify it locally and upload it again.

  3. #3
    Join Date
    Mar 2008
    Location
    Morocco
    Posts
    47
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: access to ftp server

    thanks..
    well I m trying to use the qftp class ..
    but I have a problem..I tried a simple exemple to put a file into the ftp server..but it doesnt work:

    Qt Code:
    1. QFtp *ftp=new QFtp(this);
    2. ftp->connectToHost("ensa2008.ifrance.com");
    3. ftp->login("userName","Password");
    4. ftp->rawCommand("put D:\kkk\webView\release\katie.bmp");
    5. ftp->close();
    To copy to clipboard, switch view to plain text mode 
    so ..how can I know wht the problem is ??

    thanks !!
    Last edited by jpn; 31st May 2008 at 16:32. Reason: missing [code] tags

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: access to ftp server

    QFtp works asynchronously like many other networking classes in Qt. For example QFtp::login() does not block but returns immediately. The stateChanged() signal is emitted when the state of the connecting process changes, e.g. to LoggedIn.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    peace_comp (1st June 2008)

Similar Threads

  1. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  2. How to ping a server ?
    By Nyphel in forum Newbie
    Replies: 2
    Last Post: 23rd April 2007, 11:27
  3. Replies: 0
    Last Post: 16th April 2007, 12:18
  4. How a server can write "Hello" to a browser ?
    By probine in forum Qt Programming
    Replies: 2
    Last Post: 1st December 2006, 14:43
  5. Replies: 1
    Last Post: 4th October 2006, 16:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.