Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Member
mastersact
Posts: 3
Registered: ‎06-30-2011
My Device: 1

Problem while uploading file: Big requests does not show up in MDS logs

Hi,

 

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.

 

Thanks.

Please use plain text.
Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

Re: Problem while uploading file: Big requests does not show up in MDS logs

Hi,

 

Try increasing the time of your connection.

 

Also check the time that the server alows you to upload.

 

Thanks 

Krishnan

Please use plain text.
New Member
mastersact
Posts: 3
Registered: ‎06-30-2011
My Device: 1

Re: Problem while uploading file: Big requests does not show up in MDS logs

Hi Krishnan,

 

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.

 

Regards.

Please use plain text.
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem while uploading file: Big requests does not show up in MDS logs

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. 

Please use plain text.
New Member
mastersact
Posts: 3
Registered: ‎06-30-2011
My Device: 1

Re: Problem while uploading file: Big requests does not show up in MDS logs

For problem (a):

 

1. Following is the URL I am using:

http://my-pc/myservices/DocumentManagementService.asmx/AddDocument2 HTTP/1.1

 

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.

 

Please use plain text.