I'm trying to recreate an HDF5 file using h5py
that stores binary data (e.g. JPEG compressed images) as an OPAQUE
dataset using the tag to store the MIME type so they can be easily decoded later.
The only way I've been able to solve this is using the low-level API, but it would be nice if there was something higher level!
(I'm posting my solution an answer in the hope it's useful to other people as I struggled to find many examples of doing this sort of thing)