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.
