Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    I want to store any data from QNetworkReply

    General and Desktop
    3
    4
    637
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Armin last edited by

      Hi
      I want to store any data from QNetworkReply in directory ( like c:/armin/myApp )
      But i don't know which what member i should choose in QIODevice ?

      K 1 Reply Last reply Reply Quote 0
      • K
        koahnig @Armin last edited by

        @Armin

        Are you looking for a general access to QNetworkReply to store the reply completely?
        The important information from a QNetworkReply you can pick directly from its interface routines and store it through any stream possibility (e.g. std::ofstream, QTextStream, ...).

        There is no direct routine to store the network completely.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply Reply Quote 2
        • A
          Armin last edited by

          @koahnig Thanks
          QTextStream is for just text and number?

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Armin last edited by

            @Armin As you want to store ANY data you need http://doc.qt.io/qt-5/qdatastream.html to write binary data.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 3
            • First post
              Last post