I have an asp net core web application where I can upload files, and on the controller I get the files in IFormFile like this:
public IActionResult Create (AcquisitionDto <IFormFile> acquisitionDto)
Some of these files are images, but one is a .h5 with metadata. And I want to store this information in mongdb, so far so good.
But before writing to mongodb, I want to extract the information inside h5 so I can save it as fields in the mongo document. In short, I want to open the .h5 file I get in controler as IFormFile and convert its content to JSON.
I am using HDF5DotNet.x64 package to try to open the file, but I can only open .h5 if I pass the file path but cannot open from a byte[] or MemoryStream.
Do you know any way or package to do this?
Thank you very much