public long AddBuffer(byte buffer[], int bufflen)throws IOException
    {
        boolean isLargeFile = false;
        if(bufflen > 0xa00000)
        {
            Log.logger.info("Buffer len is too larger,please select file to send");
            return -1L;
        }
        FS_Function fs_fsi = FS_Function.getInstance();
        Long id = Long.valueOf(fs_fsi.genFileId(isLargeFile));
        if(id.longValue() != -1L && fs_fsi.addBuffer(id.longValue(), buffer, bufflen))
        {
            Log.logger.info((new StringBuilder("Buffer ID= ")).append(id).toString());
            return id.longValue();
        } else
        {
            Log.logger.error("Buffer ID null");
            return -1L;
        }
    }