0

I am developing a raster service using the Java bindings of GDAL.

When I execute a warp to extract a portion of the original photo, the result saves a new file by default. For performance purposes, I would like the result to stay in memory from which I could obtain and send the bytes in the HTTP response.

I tried using the VSIMEM virtual path, but I can’t find a way to obtain the byte array of the resulting image using the Java API.

Has anyone faced the same situation and found how to do it?

Dr Mido
  • 2,414
  • 4
  • 32
  • 72

0 Answers0