I'm writing an ECL provider for use with CMIS repositories. In the getContent and getThumbnailImage methods I'm using a MemoryStream created with the CopyTo method from a BufferedStream.
From what I can tell my MemoryStream exists, it has a length roughly equal to the size of the object it represents and it returns true for CanSeek, CanRead and CanWrite.
However, when I use this stream GetThumbnailImage and GetContent are both not firing (or at least any exceptions I try to throw in them don't appear in Tridion).
To test if it's a problem with my code outside of the stream I've tried passing it a FileStream created from an image on my desktop and that is working with no problems.
Is there a problem with using MemoryStreams in general for these methods, or is it more likely a specific issue with my stream?