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

HTTP 413 Request Entity Too Large

by Retired on ‎02-17-2010 01:36 PM - edited on ‎05-28-2012 02:32 PM by BlackBerry Development Advisor (16,000 Views)



This article applies to the following:

  • BlackBerry® Internet Service Browsing (BIS-B)
  • BlackBerry® Mobile Data System (BlackBerry MDS) Connection Service
  • BlackBerry smartphones based on Java® technology



When downloading content to the BlackBerry smartphone through the BlackBerry® Browser or BlackBerry Internet Service browser or through an TCP (HTTP or socket) connection using the BlackBerry MDS or BIS-B transport, there are limits on the amount of data that can be downloaded per connection. If this limit is exceeded, the BlackBerry MDS or BIS-B transport returns an HTTP 413 - Request Entity Too Large error when using HTTP or a SocketBaseIOException with the message of Exceeded the limit of number of bytes allowed per connection.


For BlackBerry MDS, this limit can be changed in BlackBerry Manager using the Maximum KB/Connection setting. In BlackBerry® Enterprise Server software versions 4.0 and 4.1, the default value is 256 KB and the maximum value for the setting is 1024 KB. In BlackBerry Enterprise Server software version 5.0, the default value is 1024 KB and the maximum value is 10,240 KB. This limit was increased again in version 5.0.2 with the default value being 2048 KB and maximum value of 32,768 KB.  For more information on changing this setting, refer to the BlackBerry Enterprise Server Administration Guide.


If the BlackBerry Browser or application is downloading specific Multipurpose Internet Mail Extensions (MIME) types, the limits can be increased for these types using the Media Content Manager introduced in BlackBerry Enterprise Server software version 4.1 Service Pack 2 (4.1.2). Content of these types are now subject to download limits as set using the Media Content Manager; all other types will be subject to the limits as defined in the Maximum KB/Connection setting.There is no restricted limit for uploading content using the BlackBerry Browser or from a Java application connecting through the BlackBerry MDS using HTTP POST.


The BlackBerry Internet Service browser has fixed download limits as shown in the following table when using BlackBerry Device Software version 5.0 and lower.  There are no size restrictions for downloading using the BlackBerry Internet Service browser when using BlackBerry Device Software version 6.0 and higher.

MIME type Maximum number of bytes per connection (KB) 
application/msword 2048
application/pdf 2048
application/vnd.ms-excel 2048
application/vnd.ms-powerpoint 2048
application/vnd.oma.drm.message 5120
application/vnd.oma.dm.message 5120
All multimedia MIME types 122,880

If the content does not fall into one of these MIME types, then the maximum limit is 1024 KB. There is no limit for uploading content through the BlackBerry Internet Service browser using HTTP POST.


Note: All of the above references to KB assume that 1 KB = 1000 Bytes.

Users Online
Currently online: 27 members 2,489 guests
Please welcome our newest community members: