iii
我要求将CSV/Xlsx文档列入我的FLEX AIR。
var strFilePath :String = File.applicationDirectory.nativePath + "Test.xlsx";
var recurFile :File = new File(strFilePath);
var stream :FileStream = new FileStream();
stream.open(recurFile, FileMode.READ);
var content :String = String(stream.readUTFBytes(stream.bytesAvailable));
But variable content always has "PK.." .. is some hexadecimal character.
我试图使用URLLoader,但结果仍然相同。
请更正成Xlsx/csv文档。