How to read a binary file on the other computer?
Thank you.
Printable View
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!
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.
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.