On Tue, May 5, 2009 at 13:31, Ian Dunlop <[email protected]> wrote:
> As you have noted, you should be able to use the reference service to give
> you the correct object back using
> eg, referenceService.renderIdentifier(reference, byte[].class, null) (where
> byte[].class can be replaced with whatever you want).  However the problem
> here is you need a StreamToValueConverterSPI to do the conversion from a
> stream to the type you want and there isn't one for Base64.
> So, an alternative is to try using the local worker EncodeByteArrayToBase64
> which takes a byte array as input and outputs a Base64 object.  Or write
> your own StreamToValueConverterSPI :)

As Ian points out Taverna doesn't know that the string 'really' is a
Base64-encoded byte array.

Such an annotation/registration would have to be added by the service
(activity) that produced it - and a matching converter would have to
do the job.

Strings can normally also be retrieved as byte[] arrays - but you
would get the utf8-encoded version of the string.

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

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
taverna-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-hackers
Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq

Reply via email to