From 55f4eb68be315c83c6213aa6be44e13c5aeae5ce Mon Sep 17 00:00:00 2001 From: rcollier Date: Sun, 9 Oct 2011 01:38:09 +0000 Subject: [PATCH] SMACK-349 The correct byte size is now calculated for outgoing ibb streams, taking into account the base64 encoding. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_2_0@12859 b35dd754-fafc-0310-a699-88a17e54d16e --- .../smackx/bytestreams/ibb/InBandBytestreamSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSession.java b/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSession.java index 932fdc633..1cced78b2 100644 --- a/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSession.java +++ b/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSession.java @@ -594,7 +594,7 @@ public class InBandBytestreamSession implements BytestreamSession { * Constructor. */ public IBBOutputStream() { - this.buffer = new byte[byteStreamRequest.getBlockSize()]; + this.buffer = new byte[(byteStreamRequest.getBlockSize()/4)*3]; } /**