netty, ByteBuf 轉 String

ByteBuf bf =req.content();
        byte[] byteArray = new byte[bf.capacity()];  
        bf.readBytes(byteArray);  
        String result = new String(byteArray);
相關文章
相關標籤/搜索