hello

I am dealing with java-jpa2-postgis(raster)

I tried to get an image from postgis(raster) as:

List list_rast = session.createSQLQuery("SELECT ST_AsPNG(rast) As rastpng  FROM
geoslp5 where rid=184 ;").list();

and converting object to byte[]
and
with usual java process
ByteArrayOutputStream bos = new ByteArrayOutputStream();
... //
bytes = bos.toByteArray ();


But resulting image file(png) is defective ?

What may the probable problems ?

Do you have any recommendations ?

regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
_______________________________________________
postgis-users mailing list
[email protected]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users

Reply via email to