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 Developer
nurikabe
Posts: 44
Registered: ‎08-20-2008
My Device: Not Specified
Accepted Solution

How to tell if a connection is being made through BES?

Hi,

 

I'm new to BlackBerry development; sorry for what is likely to be a newbie question.

 

Is there a way to determine if a network connection is going through BES or not?  Likewise, when going through BES, is there a way to know the maximum files size that can be transmitted?

 

Thanks in advance!

 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,653
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: How to tell if a connection is being made through BES?

The deviceside=false parameter can be used to direct a connection through a BlackBerry Enterprise Server.  The following link explains this further.

 

What Is - Different ways to make an HTTP or socket connection
Article Number: DB-00396

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

 

There is no API to poll the BlackBerry Enterprise Server to determine its setting for the maximum file size.  However, if a file is over the maximum size it will return a 413 response code on the connection.  Please have a look at this link for more details.

 

What Is - HTTP 413 Request Entity Too Large
Article Number: DB-00623

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.