On 05/05/2010 03:50, Alexandra Nenadic wrote:
> 
> Hi David,
> 
> I presume you are talking about the SaveIndividualResult action in 
> result-view module? We have also noticed there was a problem with saving 
> individual results because it was rendering it as an Object and it was 
> fixed last week (see T2-1280: Binary data not always loaded/saved 
> correctly; http://www.mygrid.org.uk/dev/issues/browse/T2-1280).

That's awesome!

> The problem was that it was always saving binary data as a String (when 
> rendering as Object, String seems to always be the first one to be 
> returned by the Reference Service). So this worked on MAC but not on 
> Windows, probably due to different string encoding.
> 
> Anyway, our fix was to use the first (least expensive) 
> ExternalReferenceSPI returned for that T2Reference (which is actually a 
> ReferenceSet) and just use its openStream(context) method and then save 
> that stream to a file regardless of what the stream contained.

That seems like a good solution.

David.

-- 
David Withers
School of Computer Science, University of Manchester,
Oxford Road, Manchester, M13 9PL, UK.
+44 (0)161 275 0683

------------------------------------------------------------------------------
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to