Just wondering if I'm missing a step here.
I'm able to connect, log in, retrieve documents and search for documents using the Java SDK (9.2).
We are now trying to write to the entry. However, after calling Document.writeEDoc() the contents of the entry appear to be empty.
Pseudocode
filePath = "c:\temp\test.pdf"; documentFolder = Folder.getByPath("\WSTesting", Session); documentVolume = Volume.getByName("DEFAULT", Session) /> myDoc = Document.create( documentFolder, documentName, documentVolume, EntryNameOption, Session ); javaFile = CreateObject("java","java.io.File"); locktype = CreateObject("java","com.laserfiche.repositoryaccess.LockType"); mydoc.lock(locktype.EXCLUSIVE); javaFile.init(filePath); mydoc.writeEDoc(javaFile, "application.pdf"); mydoc.unlock(); retrievedoc = Document.getById(mydoc.getId(), Session)';
Retrieving the document works great (I get an entryID, etc), and the document object seems to be as expected (path, name, size all as expected). However, after all this, the entry in LF is empty. Page count is zero and opening the entry in LF client shows an empty file.