Results 1 to 4 of 4

Thread: QFtp reading file from FTP

  1. #1
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default QFtp reading file from FTP

    Hi

    I have question, It is possiable to read file from FTP server without downloading him?

    Best regards

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

    Default Re: QFtp reading file from FTP

    Since QFtp::get() takes an QIODevice you can use a QBuffer instead a QFile.

  3. The following user says thank you to ChristianEhrlicher for this useful post:

    Zergi (27th March 2008)

  4. #3
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QFtp reading file from FTP

    Hmm I was trying to do it, but i simply dont know how... Can You give me a little example?;]

    best Regards

  5. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFtp reading file from FTP

    I don't know what I should write. Instantiate a QBuffer, open it with ReadWrite permission, give it to QFtp and wait till QFtp is finished.

Similar Threads

  1. QTextStream loses position while reading file
    By bjh in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2008, 15:47
  2. Replies: 3
    Last Post: 18th October 2007, 18:07
  3. QWT 5, QT3, SuSE 10.2. Crash and burn
    By DrMcCleod in forum Qwt
    Replies: 8
    Last Post: 7th September 2007, 20:53
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

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.