I'm looking for a way to upload an image from android to php server, currently I'm encoding the image to base64 and send it, but it's too slow, is there is a better way
I'm using volley as network client.
I'm looking for a way to upload an image from android to php server, currently I'm encoding the image to base64 and send it, but it's too slow, is there is a better way
I'm using volley as network client.
My 2 cents:
Few things can be improved depending on what you are targeting.
BroadcastReceiver
to listen for the change in its state.
Eg:
BroadcastReceiver when wifi or 3g network state changedgzip
compression. If it does make sure you are compressing the requests. This way you are zipping your request data which can be a substantial improvement in the size. Android Volley: gzip response Hope this helps.