views:

151

answers:

2

I am trying to download a file from Sharepoint 2007 sp2 document library using GetItem method of the Copy webservice. I am facing the following issues :

  1. In the local instance ( Windows Vista ) I can save only 10.5 Kb of any file. The webservice is returning only 10.5 Kb of data for any file.

  2. On the production server, I am able to List the documents using some credentials but when I am trying to download a document using the same credentials I get a 401 : Unauthorized message. I can download the document using the Sharepoint website successfully.

A: 

Did you have any luck with this?

--Ted

Ted
I was able to download the file successfully by writing the data in the response OutputStream and setting the response header asresponse.setHeader("content-disposition", "attachment; filename=\"" + downloadFileName + "\"");
Deepak Singh Rawat
A: 

Hello could you post a code to acces to the sharepointdocument library from Java?

Thanks

Beuz