Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Livelink LAPI API (Unable to read bytes)
Jeff_Etrick
I'm trying to import files into LiveLink via LAPI.I am using version 8.0 and calling the AddDocument method.The exception I am getting is "com.opentext.api.LLIOException: Could not read bytes from file"I can see this file, edit it, what is the problem?// Add the document to the folderif(lapi.AddDocument(currFolder.volumeID,currFolder.objectID, localFile, selectedFile.getAbsolutePath(), objectInfo, versInfo) == 0) // No errors{ refreshLivelinkTree();}// Error adding the documentelse{ showMessagePopup("Livelink Error:\nAdding The File.", JOptionPane.INFORMATION_MESSAGE);}------------------------ERROR from livelink Could not read bytes from file: C:\TEMP\temp.jpgcom.opentext.api.LLIOException: Could not read bytes from file: C:\TEMP\temp.jpg at com.opentext.api.LLConnect.execute(Compiled Code) at com.opentext.api.LAPI_DOCUMENTS.AddDocument(LAPI_DOCUMENTS.JAVA) at com.ensco.mdes.reports.reportFolder.ReportFolderFrame.addFile(Compiled Code) at com.ensco.mdes.reports.reportFolder.ReportFolderFrame.access$12(ReportFolderFrame.java:68) at com.ensco.mdes.reports.reportFolder.ReportFolderFrame$33.actionPerformed(ReportFolderFrame.java:856) at javax.swing.AbstractButton.fireActionPerformed(Compiled Code) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101) at javax.swing.DefaultButtonModel.fireActionPerformed(Compiled Code) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) at javax.swing.AbstractButton.doClick(AbstractButton.java:226) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:754) at java.awt.Component.processMouseEvent(Compiled Code) at java.awt.Component.processEvent(Compiled Code) at java.awt.Container.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code)
Find more posts tagged with
Comments
There are no comments yet