// client call
        public static Object convertReturnInputStream(Stream ins)
        {
            // get byte array length
            int blength = TransferUtil.readInt(ins);

            byte[] buf = new byte[blength];
            ins.Read(buf, 0, blength);

            return(convertReturnByteArray(buf));
        }