Unable get proper document content in specific format

Do you want to create a native client or integrate with third party applications: webservices are the solution.

Moderator: car031

ajutate
Posts: 3
Joined: Wed Jul 03, 2019 2:40 pm

Unable get proper document content in specific format

Wed Jul 03, 2019 4:28 pm

I'm using getcontent REST call to Fetch document to thr original type but when Im trying to download PDF or any other format file except "txt" It gives me wrong format data which does not suit to that particular extra format.
I'm using peace of Java servlet code to download file using docid .
I'm using find() Method to get docid and doc name with extn.
But other than text format Other Format files Does not download properly
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Unable get proper document content in specific format

Mon Jul 22, 2019 9:54 am

Hi @ajutate,
I think there is already an answer to a similar request viewtopic.php?f=10&t=10579#p16409

You can get some working examples for many different programming languages in the wiki of LD
https://wiki.logicaldoc.com/wiki/Bindings_And_Samples
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Unable get proper document content in specific format

Mon Jul 22, 2019 10:44 am

Here is an example using HttClient to find and download the results to file
Look at the methods findAndDownload and downloadDocument
Attachments
HttpRestWb.zip
uncompress this file, it contains a single java class
(3.43 KiB) Downloaded 260 times

Return to “Web Services”

Who is online

Users browsing this forum: No registered users and 3 guests