I have a binary stream (blob) that I want to use to create a .h5 file.
with open("test.h5", mode="wb") as writer:
writer.write(h5bin) #h5bin is the binary I received from a service
But when I try to load the h5 file, it says Unable to open file (file signature not found). Upon searching for the error it seems that the file is corrupted, so I am assuming this is not the correct way to create h5 file when I have the binary.