Hello, I just sent workflow 16 to the taverna player by base64 encoding it on the command line and using curl and it all worked ok. Here is the base64 version https://dl.dropboxusercontent.com/u/4958764/wf16.base64 Maybe you need to ensure it is UTF-8 character set.
Cheers, Ian -----Original Message----- From: Ian Dunlop [mailto:[email protected]] Sent: 06 July 2015 11:53 To: [email protected] Subject: RE: GSOC Taverna Mobile: Uploading workflows to the Taverna player Hello, I think you are using Linux so why not test it using the command line base64 encoder and then send it to the player with curl. Something like base64 FILENAME. Cheers, Ian -----Original Message----- From: Larry Akah [mailto:[email protected]] Sent: 04 July 2015 10:42 To: [email protected] Subject: Re: GSOC Taverna Mobile: Uploading workflows to the Taverna player 2015-07-04 9:22 GMT+01:00 Alan Williams <[email protected]>: > On 04-Jul-15 01:58, Larry Akah wrote: > >> i have been able to identify a major issue which is with the Base64 >> encoding of the workflow data. The encoding doesn't seem to perform >> properly >> > > Do you have an example? > This link shows what is currently operating as a request to upload a workflow. https://github.com/larrytech7/incubator-taverna-mobile/blob/master/app/src/main/java/org/apache/taverna/mobile/fragments/workflowdetails/WorkflowdetailFragment.java Looking at the WorkflowProcessTask, you will see that i have put the base64 encoded(encoded by php's base64 function) string directly as a string rather than have it encoded by the util.base64 method. This produces a 'Internal Server error' and status code 500. But when i use the util.base64 method, i get a 'Bad Request' response message and response code of 400. > > However, now i get a 'Internal Server Error' message, error code 500 > for >> the workflow with id 34 encoded encoded using PHP's base64 encode >> function >> > > I am confused. Where does PHP come into your Android App? Not that i use it in the android app, but i was trying out different base64 encoding schemes. > > > and used as a raw string in the post body. >> What correct java implementation for the base64 encoding can one use? >> > > What is wrong with the android.util.Base64 ? You possibly need to try > different options such as NO_WRAP. > Ok, i will try the options. > > Cheers >> > > Alan > > Thanks -- *Akah Larry N.H* *Lead Software Engineer @ GiftedMom* *Founder IceTeck Inc* *www.iceteck.com* Developing technologies for emergence and sustainable development.
