android-btxfr
android-btxfr copied to clipboard
how to send the all types file?and server side save the file as the client send name?
how to send the all types file?and server side save the file as the client send name?
I agree. @simonguest , do you have any example for sending and receiving any types of data, such pictures, files, text or string? That will be very helpful if there is.
Have you seen this repo - it contains an example client and server that sends photos from one device to another.
yeah, but what about the other types of file? or simple string?
Take a look at this code in the MainActivity of the application. This is where the client loads the file that has just been taken using the camera. Should be pretty easy to replace this with opening a file from another location, or creating a new byte array if you want to send other types of data. Hope this helps!