This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi there I modified the code from this thread to suit the needs of J2ME:
Modifications I made:
* Use javax.microedition.io.HttpConnection instead of URLConnection * Use String.getBytes() as DataOutputStream.writeBytes(String s) is not available in MIDP * Use FileConnection from JSR-75 FileConnection API
I use it like this:
While the code seems to work well with GPRS, I experienced problems with UMTS. Here are my test results:
The problem of partial upload seems only to exist with larger Files (not sure where exactly the lower bound is).
I hope this was not too much information for a start, but I am currently quite desperate about this bug. I could really use some help here. I will also provide you with the results of a test on Nokia S60 phones and the results of SE on device debugging.
[ April 03, 2008: Message edited by: Tilman Bender ] Sorry could not manage to get my results formatted any better. [ April 03, 2008: Message edited by: Tilman Bender ]
Joined: Mar 16, 2008
The issue was solved by a firmware upgrade Must have been a problem with JP-8. Works as expected on JP-8.2 now.