How to read a binary file on the other computer?
Thank you.
How to read a binary file on the other computer?
Thank you.
What do you mean?
What are the use case parameters?
Or do you expect us to read you mind via telepathy?
Show some interest in your own problem solving if you would like others to try and help you!
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
oh.
There is a binary file on one computer,How to read it from my computer with QT?
Your second answer did not add any information to what you already have written.
It is my guess you are you self clueless as to what actually you want to do.
So first - make sure YOU know what it is you want to do before you ask US how to do it.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
You could take a flash drive, walk to the other computer, plug in the drive, copy the file to it, then take the drive out, go back to your machine, plug the drive, copy the file to the hard drive and then use QFile to access it. Or you could use one of the countless available protocols for network file transfer.
I am sorry for my bad english.
There is a binary file on one computer,I want to get it from my computer through Local Area Network,I think QFtp or QHttp may be used,but I do not know how to do?
If you can access the file through a network share or mounted driver outside of Qt then you probably just use QFile directly
If the file exists on a machine that has a running FTP server or HTTP server, and the file is accessible to that FTP or HTTP server, then you could use QFtp or QNetworkAccessManager (not QHttp) to access that server and retrieve the file.
FTP (Chinese)
HTTP (Chinese)
If you can install and run a program of your own on the machine with the file then you can use QTcpSocket to create a server and client pair to transfer the file.
Try to work out which option applies.
Bookmarks