Hi

Could you give us the code piece where you call the function? The
exception seems to indicate that there is a problem reading your file.

Regards

On Tue, 2009-06-30 at 20:51 +0200, WangFeng wrote:
> Hi everyone,
> i am writing a client by using the fedora client jar with SOAP API.
> So i tested all the Method from API-M. It works well by calling the
> Method like ingest or adddatastream.
> But i can't still use the uploadFile from fedoraclient or the
> Uploader.upload(java.io.File file). And still got the Exception with
> "No data send to the server". I can't understand, why this Method
> couldn't be used. I am sure all setting for the file or
> fileinputstream are fein and right. I must use the file from local and
> upload it to server at first. 
> Please help me to fix it!!
> Thanks
> Feng
> 
> 
> 
> 
> java.io.IOException: Upload failed: Bad Request: No data sent.
> ?at fedora.client.FedoraClient.uploadFile(FedoraClient.java:195)
> ?at fedora.client.Uploader.upload(Uploader.java:114)
> ?at fedora.client.Uploader.upload(Uploader.java:97)
> ?at FoXM! L.ClientTest.uploader(ClientTest.java:269)
> 
> 
> 
> ______________________________________________________________________
> 更多热辣资讯尽在新版MSN首页! 立刻访问!


------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to