Hi. I have a Windows user in Korea that is having trouble opening a binary project file my app creates. I use the code below to create and open and it works fine for everybody else but for some reason the data seems to be corrupted for him.
I have no trouble opening the data he saves on my Windows machine and have debugged various ways with him testing to see how it is getting corrupted but have no idea.
Could it be a LittleEndian / BigEndian issue?
// Save FileData = ConvertEncoding(FileData, Encodings.UTF8) binary = BinaryStream.Create(Document, True) If binary <> Nil then binary.WriteInt32 lenB(FileData) binary.Write FileData binary.Close End If // Open binary = BinaryStream.Open(Document, False) If binary <> Nil then Do Until binary.EOF i = binary.ReadInt32 FileData = FileData + binary.Read(i) Loop binary.Close FileData = DefineEncoding(FileData, Encodings.UTF8) End If