The following code works on most, but not all, of the files I have been tasked to convert to another format:
oInflater.SetInput(oCCMSReturn.ByteArrayFileObject, 0, oCCMSReturn.ByteArrayFileObject.Length)
Do While Not oInflater.IsFinished
iBytesInflated = oInflater.Inflate(myBuffer)
sb.Append(Encoding.UTF8.GetString(myBuffer, 0, iBytesInflated))
xd.LoadXml(sb.ToString.Substring(1, sb.Length - 1))
When it fails, there is an error message "Header checksum illegal" as soon as the loop begins.
I know absolutely nothing about this code except what I have written here. It was created by
two people, neither one of which are still available.
Are there any entries I can make in the vb.net code that might get past the problem with the files
that are failing? (I can predict which files are going to fail by their extensions...OID files will pass, OIN files will not, and yes, I am sure no one out there has ever heard of either one of these extensions. They are INK files, similar (but not similar enough - the Windows Journal Viewer cannot load them) to Windows Journal Files, originally created on a Tablet PC.
I posted the same question in the SharpDevelop community and was left with deafening silence
Thanks in advance for your help!