cancel
Showing results for 
Search instead for 
Did you mean: 

Download from KM

Former Member
0 Kudos

Hi,

Is it possible to open a doc/pdf file from KM without copying it on local machine.

Regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Nirav,

It is possible.

Refer this weblog. It is an excellent one

/people/bobu.georgeputheeckal/blog/2006/12/22/getting-an-image-from-km-documents-to-be-used-in-web-dynpro

Regards

Fahad Hamsa

Former Member
0 Kudos

Hi,

create a lik to url ui element bind th url

url= http://xxx:50xx00/irj/go/km/docs/kmpath.

Regards,

Naga

Former Member
0 Kudos

Hi Nirav,

When accessing a resource in the KM you have an object of type IResource.

for this object you can get an IContent object and convert it into an array of bytes.

Then for displaying the file's content:

byte[] fileContent = .......

type = WDWebResourceType.PDF;

IWDCachedWebResource pdfResource= WDWebResource.getWebResource(fileContent,type);

wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),"fileName",true).open();

Regards, Adi.