Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saravanan-vdg opened this issue Aug 24, 2016 · 4 comments

Comments

@saravanan-vdg
Copy link

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

@poralcode
Copy link

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.

@simonguest
Copy link
Owner

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

@poralcode
Copy link

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

@simonguest
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants