Reputation: 2938
I have to send more than 100 images to webserver from android application.
Currently using Android Asynchronous Http Client library to send image files.
The error that occured to me are:
1. Socket timeout Error
2. OutofMemory Error
I even call myClient.setTimeout(time), but its not working.
I am looking for better option to send large number of images to server.
In success of sending each images to server, I am taking response from server like status: true/false.
And another question, Should I maintain queue for sending these large number of images and back taking response message from server ?
Sugestions ??
Upvotes: 0
Views: 284
Reputation: 527
Based on what I've done previously, I'm using XMPP to transfer images to the webserver. From android, you can use asmack to send/receive image files. And from the server side, you need to have XMPP server which for my case, I'm using prosody server because I want it to be as light as possible. Then you can create simple program in the webserver to login to that xmpp server. To use it, you can just send from android xmpp to user that you use to login in a program in webserver.
Upvotes: 1