stream 與byte[] 轉換

//stream 轉爲byte[] public byte[] stream2byte(Stream stream) { byte[] buffer= new byte[stream.length]; stream.Read(buffer,0,buffer.length); return buffer; } //byte[] 轉stream public stream
相關文章
相關標籤/搜索