Currently, I've created one android apps to enables to send/transfer file from internal storage to remote server via WAN when I stayed in outside.
All files is success transfer but at the end my server is ended up with this message, ( the picture/music files will be success rendered when I quit out this programs )
Exception in
thread "main" java.lang.IllegalArgumentException: Illegal Capacity: -1
at java.util.ArrayList.<init>(Unknown Source)
at ServerSocket.com.ServerRun.main(ServerRun.java:60)
Here is my server side code,
Server :
Android Side
My problem is here how can I modify to server side code to avoid this problems on future. Appreciate to any helps and thanks.