setOutputBufferSize method

Sets the size, in bytes, of the output buffer used to store data before it is sent to the MobiLink server.

Syntax
void StreamHTTPParms.setOutputBufferSize(
  int size
)
Parameters
  • size   The new buffer size.

Remarks

The default is 512 on non-Blackberry J2ME; otherwise, 4096. Valid values range between 512 and 32768. Increasing this value may cause the Java runtime to send chunked HTTP, which the MobiLink server cannot process. If the MobiLink server outputs an "unknown transfer encoding" error, try decreasing this value.

See also