[Zoo-discuss] image as output value

Luca Delucchi lucadeluge at gmail.com
Mon Mar 18 14:30:23 PDT 2013


Hi all,
I'm trying to return an image from a ZOO service. The Python code is like this

fout = open(output)
outputs["result"]["value"] = fout.read()
outputs["result"]["size"] = os.path.getsize(fout.name)
return 3

ZOO-kernel return an error at return statement.

If I try to return the path to image I have no error.
Some advice?

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the Zoo-discuss mailing list