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!!
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 FoXML.ClientTest.uploader(ClientTest.java:269)