Android Question Best Method to Transfer Data/files

JonRubin

Member
Licensed User
Longtime User
After some searching, I see that there are at least 2 different methods to send data back and forth to a PC. The Websocket Library and the AsyncStreams. However, both seem to be a few years old. My question is which is the best method/library to transfer the data... or is there something newer that I missed in my searches. Thank you for all your help and Happy Holidays to All.

-Jon
 

JonRubin

Member
Licensed User
Longtime User
Let me add that the connection between the PC and the Android will be via the Internet and not a USB connection...... Thanks... Jon
 
Upvote 0

JonRubin

Member
Licensed User
Longtime User
Thank you for your reply Mario and I often use FTP however I believe that the functions I am looking for really calls for more of a Websocket or Async approach.... Jon
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
WebSocket is text based so it is less suitable for file transfers.

There are many ways to transfer files. You can create a small B4J server that receives files: https://www.b4x.com/android/forum/t...r-b4j-server-over-the-internet.37201/#content
You can use sockets: https://www.b4x.com/android/forum/threads/network-asyncstreams-b4xserializator.72149/#content
You can use MQTT.
You can use FTP.
You can use Bluetooth with AsycnStreams and B4XSerializator.

And there are probably more options available.
 
Upvote 0

JonRubin

Member
Licensed User
Longtime User
Sorry Erel and thank you for your reply.... I'll be transferring JPG's mostly under 1MB. I don't feel that I will be exceeding 250MB. The same file will be simultaneously transferred to multiple Android users Additionally on the the PC Side I will be developing in .net
Thank you! Jon
 
Last edited:
Upvote 0
Top