EdsCreateImageRef fails when using MemoryStream
问题 I want to capture RAW images from a Canon Camera (EOS 550D and EOS 1300D) and convert them to RGB without saving them on disk. I was assuming that this should be possible, given the fact that EdsCreateImageRef accepts a StreamRef, which can be either a FileStream or a MemoryStream. However, whenever I use a MemoryStream instead of a FileStream, EdsGetImageRef will return EDS_ERR_FILE_FORMAT_UNRECOGNIZED. I tried several variants: downloading into a MemoryStream and calling EdsGetImageRef