@@ -0,0 +1,595 @@
+package net.interfax.rest.client.util;%0A%0Apublic class ArrayUtil %7B%0A%0A    public static byte%5B%5D%5B%5D chunkArray(byte%5B%5D array, int chunkSize) %7B%0A        int numOfChunks = (int)Math.ceil((double)array.length / chunkSize);%0A        byte%5B%5D%5B%5D output = new byte%5BnumOfChunks%5D%5B%5D;%0A%0A        for(int i = 0; i %3C numOfChunks; ++i) %7B%0A            int start = i * chunkSize;%0A            int length = Math.min(array.length - start, chunkSize);%0A%0A            byte%5B%5D temp = new byte%5Blength%5D;%0A            System.arraycopy(array, start, temp, 0, length);%0A            output%5Bi%5D = temp;%0A        %7D%0A%0A        return output;%0A    %7D%0A%7D%0A

Add utility to split byte arrary into chunks