I'm using the SDK to extract documents, but have found something strange with some file types.
The code to extract the document is:
Using myFile As FileStream = File.Create(myOutFile) Using lfReadStream As LaserficheReadStream = myDocumentInfo.ReadEdoc(zMimeType) lfReadStream.CopyTo(myFile) End Using End Using
This works fine if the file is .htm, .zip, .pdf or .eml. However, for .txt, .tif or .png files, the above results in an empty file.
When I look at the properties of the files I'm working with, the files that don't work indicate they have no 'Electronic Document Properties'. Looking at the code I'm using, I can see that since I'm using 'ReadEdoc', and there's no electronic document, that would explain why I'm getting an empty file. So I have a few questions:
- Why are some types stored as electronic documents, and others are not. Can that be changed?
- How do I extract the contents of the files when they're not stored as an electronic document
- The filenames are returned without an extension, but for the electronic documents that can be determined from the properties. How can I determine the original filename extension for the files that don't have electronic documents?
Thanks!