<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<br class=""><br class="">I am developing a raster service (WMS, OGC API Maps) using the Java bindings of GDAL.<br class=""><br class="">When I execute a translate (or 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 response of my service.<br class=""><br class="">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.<br class=""><br class="">Does someone in the community know if it is possible to do it? Or maybe a better approach exists?<br class=""><br class=""><br class="">Thanks,<br class=""><br class="">Jean-Robert<br class=""><div class="">
<div id="sig" style="min-height: 50px; line-height: 17px; margin: 6px 0; padding: 8px; border-top: 0px #999999 dotted; border-bottom: 0px #999999 dotted; font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; font-size: 11px; color: #000000; min-width: 530px;" class=""><a href="http://k2geospatial.com" class=""><img style="float: left; padding: 4px 11px 0 0;" src="http://images.k2geospatial.com/k2.png" alt="K2 Geospatial Logo" class=""></a><strong style="color: #000000;" class="">Jean-Robert Desbiens-Haddad</strong> | CTO<br class="">(514) 285-1211 ext. 115 | <a href="https://maps.google.com/?q=1440+Rue+Sainte-Catherine+O,+Montréal,+QC+H3G+1R3" target="_blank" class="">1440 rue Sainte-Catherine ouest</a>, bureau 522, Montréal, QC, H3G 1R8<br class=""><small class="">Si vous ne souhaitez plus recevoir de messages de K2 Geospatial, veuillez l'indiquer en répondant à ce message.</small><p class=""></p></div>
</div>
<br class=""></body></html>