public Response put(InputStream inputStream, long size, String key, String token, StringMap params,
                        String mime, boolean checkCrc) throws QiniuException {
        if (size < 0 || size > configuration.putThreshold) {
            return put(inputStream, key, token, params, mime);
        }
        byte[] data = null;
        try {
            data = IOUtils.toByteArray(inputStream);
        } catch (IOException e) {
            throw new QiniuException(e);
        }
        return put(data, key, token, params, mime, checkCrc);
    }
public Response put ( InputStream inputStream , long size , String key , String token , StringMap params , String mime , boolean checkCrc ) throws QiniuException { if ( size < 0 || size > configuration . putThreshold ) { return put ( inputStream , key , token , params , mime ) ; } byte [ ] data = null ; try { data = IOUtils . toByteArray ( inputStream ) ; } catch ( IOException e ) { throw new QiniuException ( e ) ; } return put ( data , key , token , params , mime , checkCrc ) ; }
上传字节流，小文件走表单，大文件走分片

@param inputStream
@param size
@param key
@param token
@param params
@param mime
@param checkCrc
@return
@throws QiniuException
@throws IOException