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

New Developer
Posts: 44
Registered: ‎08-20-2008
My Device: Not Specified
Accepted Solution

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



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!


BlackBerry Development Advisor
Posts: 15,852
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

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



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


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.