android-btxfr icon indicating copy to clipboard operation
android-btxfr copied to clipboard

how to send the all types file?and server side save the file as the client send name?

Open saravanan-vdg opened this issue 8 years ago • 4 comments

how to send the all types file?and server side save the file as the client send name?

saravanan-vdg avatar Aug 24 '16 15:08 saravanan-vdg

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.

poralcode avatar Dec 08 '16 11:12 poralcode

Have you seen this repo - it contains an example client and server that sends photos from one device to another.

simonguest avatar Dec 09 '16 04:12 simonguest

yeah, but what about the other types of file? or simple string?

poralcode avatar Dec 09 '16 05:12 poralcode

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!

simonguest avatar Dec 10 '16 20:12 simonguest