You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im testing the receiveFile(file, 0, file_size) method but i cant get it working.
// Receive the file length, in bytes
byte[] buffer = new byte[8];
receiver.receive(buffer);
log("file size = " + toLong(buffer));
long file_size = toLong(buffer);
// receive the file...
File file = new File("C:\\temp\\udtfile.tar.gz");
receiver.receiveFile(file, 0, file_size);
First it was not working because seems that its not enough to create a new File(), the file have to exists before on the folder. I created the file by hand then.
Second, seems the file_size have to match the real file size? how it is this possible? i have to copy raw data to the file until reach the file_size parameter?
Ill appreciate some help on this, thanks in advance....
The text was updated successfully, but these errors were encountered:
Hi there, me again.
Im testing the receiveFile(file, 0, file_size) method but i cant get it working.
First it was not working because seems that its not enough to create a new File(), the file have to exists before on the folder. I created the file by hand then.
Second, seems the file_size have to match the real file size? how it is this possible? i have to copy raw data to the file until reach the file_size parameter?
Ill appreciate some help on this, thanks in advance....
The text was updated successfully, but these errors were encountered: