First get your data as a byte Array, than use Connection it
may be http connection, https connection, or socket
connection. Send this byte array to server using
connection. At server side get this byte array than save it
as u want means as a file or in database.