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
Fetch document in stream
Henk_Koster
This part of my program works, but i am trying to get the document in an inputstream instead of into the specified document.Does anyone know if this is possible?Regards,Edgar Klever (g.m.klever@nam.nl)package livelink;import com.opentext.api.*;public class Livelink { public void fetchDocument(String docno, String server, int port, String path, String username, String password) { try { llSession=new LLSession(server, port, path, username, password); lapiUsers= new LAPI_USERS(llSession); LLValue llValue= new LLValue(); llValue= llValue.setRecord(); int i= lapiUsers.GetUserInfo(username,llValue); if (i != 0) return; } catch (LLIOException ex) { System.out.println("Logon to LiveLink failed: " + ex); } LAPI_DOCUMENTS docs= new LAPI_DOCUMENTS(llSession); docs.FetchVersion(0, docno, 0, "C:\\MYFIRSTDOC.DOC"); }}
Find more posts tagged with
Comments
eLink User
Message from via eLinkI am looking for this too.Infact we need an inputstream to fetch the version and an outputstream tocreate a version on Livelink. So far have not found anything.Writing and reading from the file respectively, seems to be the option withus currently.Regards,Vinit Kulkarnie-mail: vkulkarni@primavera.com"eLink Discussion: Development Discussion" on 10/24/2001 10:24:57 AMPlease respond to MjYwNDE4MAAA@elinkkc.opentext.com To: "eLink Recipient" cc: (bcc: Vinit Kulkarni) Subject: Fetch document in stream Fetch document in streamPosted by NAMUser3 on 10/24/2001 10:24 AMThis part of my program works, but i am trying to get the document in aninputstream instead of into the specified document.Does anyone know if this is possible?Regards,Edgar Klever (g.m.klever@nam.nl)package livelink;import com.opentext.api.*;public class Livelink { public void fetchDocument(String docno, String server, int port, Stringpath, String username, String password) { try { llSession=new LLSession(server, port, path, username, password); lapiUsers= new LAPI_USERS(llSession); LLValue llValue= new LLValue(); llValue= llValue.setRecord(); int i= lapiUsers.GetUserInfo(username,llValue); if (i != 0) return; } catch (LLIOException ex) { System.out.println("Logon to LiveLink failed: " + ex); } LAPI_DOCUMENTS docs= new LAPI_DOCUMENTS(llSession); docs.FetchVersion(0, docno, 0, "C:\\MYFIRSTDOC.DOC"); }}[To reply to this thread, use your normal e-mail reply function.]============================================================Discussion: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
eLink User
Message from Benjamin Shapiro via eLink> Infact we need an inputstream to fetch the version and an outputstream to> create a version on Livelink. So far have not found anything. There is no such functionality with the base LAPI. I believe you could extend LAPI to include such functionality, but I'mnot sure what that would require - at the minimum you would need the SDK. Regards, Benjamin Shapiro--Benjamin J. Shapiro, BMathPrincipal ConsultantEnterprise Solutions Group--Open Text AGEschenstrasse 39004 St. Gallen - SwitzerlandPhone: ++41-(0)71-2278500Fax: ++41-(0)71-2278585mailto:bshapiro@opentext.com