Closed Blackclaws closed 7 months ago
Even more simple:
var data = File.ReadAllBytes("/home/felix/screenshot.png");
var file = new H5File()
{
Attributes =
{
{"Anything", "Data"}
},
["opaque"] = new H5Dataset(data, opaqueInfo: new H5OpaqueInfo((uint) data.Length, "test"))
};
file.Write("testing.h5");
Already shows the issue.
Thanks, will be investigated later today :-)
Two more problems I've encountered where I'm not sure whether it is a PureHDF or h5web problem:
Writing this file (with a screenshot.png that is small enough that it doesn't directly break) one gets an error on opening the top group in h5web
When leaving out the top opaque dataset:
The dataset does not get written as opaque instead it gets written as
Integer (unsigned), 8-bit, little-endian
Originally posted by @Blackclaws in https://github.com/Apollo3zehn/PureHDF/issues/76#issuecomment-2077317439