Hi Giuseppe, the GeoJSON format has no support for dumping binary data. Maybe it could be encoded in BASE64? Quite wasteful, but it needs to be turned into text so... likely a reasonable solution. In any case, that will require code changes in the GeoServer WFS module, in particular, in this method: https://github.com/geoserver/geoserver/blob/f25c16f97f785265284d48c6c6aed15dc50b47bd/src/wfs/src/main/java/org/geoserver/wfs/json/GeoJSONGetFeatureResponse.java#L427
We gladly accept pull requests, if you or someone on your behalf does the coding, make sure the PR checklist is followed <https://github.com/geoserver/geoserver/blob/main/.github/PULL_REQUEST_TEMPLATE.md> . As an alternative, you can look in commercial support <https://geoserver.org/support/>, or wait for someone else to follow either of the two previous paths Cheers Andrea On Mon, Jan 16, 2023 at 2:45 PM Giuseppe Falcone <falcone.giuse...@gmail.com> wrote: > Hi to all, > I have a feature with an attribute with type byte array. > [image: image.png] > In this field is stored an image related to feature. > When I execute a getFeature, it returns this value: > > {"type":"Feature","id":"test.fid--19187f64_185ba423c9e_-4bbc","geometry":{"type":"Point","coordinates":[561073.4,4459704.6]},"geometry_name":"geom","properties":{"gid":43,"it":null,"id":null,"x":null,"y":null,"en":null,"de":null,"fr":null,"sp":null,"link":null,"foto":null,"testblob":"[B@ab4974c","testdata":null}} > > In testblob field I have inserted images of the size of 500KB. > > What's wrong? > > Thanks a lot. > > Giuseppe > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users