[Zoo-discuss] image as output value
Fenoy Gerald
gerald.fenoy at geolabs.fr
Tue Mar 19 03:33:44 PDT 2013
Hey Luca,
despite what I told you yesterday, it should now without size attribute in the map. Note that is a special case for Python and you should set the size when you are using other such as C, you can find in the qrencode source code example on how to set size [1].
Anyway, you may find the simpler example available from here : [1] to output binary data. Note that in that example the input is also binary data.
Hope it helps,
Best regards,
[1] http://www.zoo-project.org/trac/browser/trunk/zoo-project/zoo-services/qrencode/qrenc-service.c#L1179
[2] http://www.zoo-project.org/trac/ticket/34#Raster
Le 18 mars 2013 à 22:30, Luca Delucchi <lucadeluge at gmail.com> a écrit :
> 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
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
More information about the Zoo-discuss
mailing list