Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[LAPI] How to retrieve document content 1

Status
Not open for further replies.

hatnscarf

Programmer
Feb 20, 2008
5
US
Hi,
I try to retrieve the content of text document using lapi but I can't find a function which could give me this data.

I even tried to retrieve the html source of the page :

/livelink.exe/1.txt?func=doc.fetch&nodeId=<DocID>&vernum=1&viewType=1&noVersion=TRUE

but I'm almost sure there is a much simpler way.

Thanks in advance.
 
why do you need in [lapi] to use the URL of the object.If I am understanding you rightly once you have a document object you just issue the doc.FetchVersion command o get it burnt to your disk.Or are you confusing with the URL based XMLExport/Import method,this will give you the content as a xml document.There is documentation in KB for xmlexport/import methods.In this forum faq I have written a simple xmlexport/import article as well.

This is if you are using lapi there are many ways to do this,

Java/.NET Method Declaration (Stream Input)

public int FetchVersion(
int volumeID,
int objectID,
int versionNum,
java.io_OutputStream outStream)



Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Ok thank you it works!
In fact I tried this function but with wrong parameters so it threw an exception :D, so i thought this must not be the right function

I tried something with the URL because i thought i can get the content of the document by this way.
 
Hi,

I am trying to upload a large number of documents into livelink, thru my java program, which uses LAPI.
I see a real performance drawback here.

Here are some data that I can provide.

Besides the data down I have calculated the time at different points and found that most of the time is consumed in calling LAPI functions.

1)Time taken to upload 30 .pdf Documents



No.of documents uploaded – 30

Time taken for upload – 48.585seconds

Time taken to upload 1 doc on an average - 1.6 seconds



2) Time taken to upload 204 .pdf Documents



No.of documents uploaded – 204

Time taken for upload – 627.087 seconds = 10min 45 seconds

Time taken to upload 1 doc on an average – 3.07 seconds





3) Time taken to upoad 629 .pdf documents



No.of documents uploaded – 629

Time taken for upload – 6764.603 seconds =112 min = 1.87 hours

Time taken to upload 1 doc on an average – 10.75 seconds

Below is my issue.

Now if I put say 1200 .pdf documents in a batch, it takes even 11 hours for all these 1200 .pdf documents to be uploaded.

You can assume that I have a dedicated LLServer.

Where do you think I am going wrong?
Could you please advice.


Thanks,
Sunu

 
OOPS!!!!!!!!!!!
I made a mistake here.
I was trying to open a new subject in the forum
And I put all my stuff as areply to this subject.

I am Sorry

Thanks,
Sunu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top