On Sun, Jan 15, 2012 at 22:37, Markus Plangg
<[email protected]> wrote:

> However I had a problem to get the result as a single value instead of a
> list. I am working with images as byte arrays. When I created a
> beanshell to get the value, the beanshell service converts the byte
> array to a String. I saw that the "Byte Array To String" service sets
> the mime type and translatedElementType of the beanshell inputport to
> "'application/octet-stream'" and "[B" and changed that manually in my
> workflow XML.

That is correct, there is unfortunately no UI support yet for
specifying that a Beanshell expects a binary input.

The easiest way to achieve this without editing the .t2flow file is to
add the Byte Array to String local worker and customize it (but don't
change the input port).

-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to