Hey all,<div><br></div><div>I&#39;m working on an app that needs to pass HDF4 files (MODIS tiles) around as byte arrays, and then open them up using gdal#Open, from java. Open works great when I pass in the filepath, so I know that my gdal setup is solid.</div>

<div><br></div><div>The problem is, when I turn the HDF4 file into a byte array and try to use</div><div><br></div><div>gdal.FileFromMemBuffer(&quot;/vsimem/test.hdf&quot;, bytearray);</div><div>DataSet data = gdal.Open(&quot;/vsimem/test.hdf&quot;);</div>

<div><br></div><div>I get an error that reads: &quot;`/vsimem/test.hdf&#39; not recognised as a supported file format.&quot;</div><div><br></div><div>I tried something similar, by converting </div><div><br></div><div><div>

&lt;VRTDataset rasterXSize=\&quot;1\&quot; rasterYSize=\&quot;1\&quot;&gt;</div><div>  &lt;GeoTransform&gt;100,1,0,100,0,-1&lt;/GeoTransform&gt;</div><div>  &lt;VRTRasterBand dataType=\&quot;Byte\&quot; band=\&quot;1\&quot;&gt;</div>

<div>  &lt;/VRTRasterBand&gt;</div><div>&lt;/VRTDataset&gt;</div></div><div><br></div><div>to a byte array and reading it in, and that worked great.</div><div><br></div><div>Any ideas on how to deal with this issue? I&#39;ll note that open SEES the file in the /vsimem/ directory, it just doesn&#39;t recognize it as a valid file. Is this an issue with HDF4 files, or with large binary sequences? Any ideas on how to get around this?</div>

<div><br></div><div>Thanks, all,</div><div>Sam</div>