In ArcGIS there is IMemoryBlobStream, which is used to Provides access to members that control the Blob Stream.
Well, I'm trying to use this as a way to save off custom information (Layers/Groups/etc) in a globe and load it back.
I can initially load the stream from file but the problem comes with reading.
I know I can make a GroupLayerClass/FeatureLayer/etc and create a IPersistSteram from it and attempt to go stream.Load(inBlob). HOWEVER, if it's the wrong type (i.e I should have been a feature instead of a group) it all goes to heck.
I never know the order of the info coming in and it doesn't appear that there is a way to go back that part of the blob (once passed).
So can I clone that part of the blob and just look at it that way? It appears .Clone isn't implemented and since the stream isn't serializable I can't clone it that way.