
請問大神,如何將Zip壓縮檔案轉換為上圖格式的陣列
uj5u.com熱心網友回復:
讀成流檔案格式就行了uj5u.com熱心網友回復:
請問有沒例子發一個
uj5u.com熱心網友回復:
看上去是sbyteuj5u.com熱心網友回復:
File file = new File("a.txt");byte[] bytesArray = new byte[(int) file.length()];
FileInputStream fs = new FileInputStream(file);
fs.read(bytesArray);
uj5u.com熱心網友回復:
隨便寫寫也不用講究好看不好看,性能不性能,只是大概說,那里面應該是sbyte
byte[] bb = new byte[] {0x01, 0xff};
var b= bb.Select(p => (sbyte) p);
var bbb = new {inf=b};
var test=System.Text.Json.JsonSerializer.Serialize(bbb);結果
{"inf":[1,-1]}
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/230097.html
標籤:C#
