06-30-2011 06:08 AM
I am new to blackberry development and using 9800 simulator. I am trying to upload a file (image/audio) on my own server. However, when I send few bytes, it gets uploaded but fails if size is over 6KB. I get local connection timed out after ~ 120000 ms.
I have tried direct web service call using KSOAP2, a POST request with urlencoded content type and also a multipart content type. But nothing is working when I increase the number of bytes.
I can also see that the request is also not shown in MDS console logs (while for small requests, it shows). How can I increase this size for upload? Is this issue because of MDS not allowing a request or am I missing something else? This is because 6KB buffer size is a very small for uploading a 1 MB or more file.
06-30-2011 07:12 AM
Thanks for your reply.
Currently timeout is ~120000, which I think is sufficient!
Moreover, when i upload 6KB, it shows up immediately on MDS console and request is immediately processed by my server. As soon as I add say 50 or 100 extra bytes to it, the request is not shown on MDS console and is not processed. This is where I receive timeout. So, increasing timeout wont be useful.
As for server, I have uplaoded multipart requests (with 10-20 MB data) using fiddler / regular java & .net code and it uploads quickly.
06-30-2011 07:15 AM
You have two problems I think:
a) you are not seeing your connection on the MDS Simulator
b) You are having a problem in terms of data transfer.
I think initially we need to concentrate on (a). Can you tell us how you are making your connection? What connection suffix are you using? You should be using ";deviceside=false" to force the processing to use MDS.
06-30-2011 07:53 AM
For problem (a):
1. Following is the URL I am using:
2. I added ";deviceside=false" as you mentioned but the result is the same.
3. I can see 6KB or less requests in MDS console and also in HTTP sniffer on server. But not for requests more than that.