Troubleshooting multipart

This commit is contained in:
Ziver Koc 2016-07-10 22:09:56 +02:00
parent 077963ae28
commit a700cf2863
4 changed files with 34 additions and 11 deletions

View file

@ -43,7 +43,7 @@ public class IOUtil {
*/
public static byte[] getContent(InputStream stream) throws IOException{
DynamicByteArrayStream dyn_buff = new DynamicByteArrayStream();
byte[] buff = new byte[256];
byte[] buff = new byte[8192];
int len = 0;
while((len = stream.read(buff)) != -1){
dyn_buff.append(buff, 0, len);