HI,
I have a requirement to read CSV/Xlsx file in my 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.
I tried to laod using URLLoader but still got same result.
Please give me correct code to read xlsx/csv files.