Skip to content Skip to sidebar Skip to footer

How To Send And Receive Image Through Socket

I want to send an image from one android device to one or multiple android devices. so which mechanism i should follow to send the image from one android device to another android

Solution 1:

Take a look at the WiFiDirectDemo sample in the SDK (API level 14+). It does exactly what you are looking for: http://developer.android.com/resources/samples/WiFiDirectDemo/index.html

WiFi direct is only available for devices running ICS. However, the socket server/client code is generic and reusable over Wifi network also:

Client: http://developer.android.com/resources/samples/WiFiDirectDemo/src/com/example/android/wifidirect/FileTransferService.html

Server: http://developer.android.com/resources/samples/WiFiDirectDemo/src/com/example/android/wifidirect/DeviceDetailFragment.html FileServerAsyncTask.

Post a Comment for "How To Send And Receive Image Through Socket"