Can someone tell me what I'm doing wrong here:
byte inBytes = File.ReadAllBytes("c:\\temp\\NotesRecording.wav");
IMemoryBlobStream inBlob = new MemoryBlobStreamClass();
inBlob.ImportFromMemory(ref inBytes, (uint)inBytes.Length);
byte outBytes = new byte[inBytes.Length];
inBlob.AttachToMemory(ref outBytes, inBlob.Size, 0);
The last part is the problem, I'm trying to extract the data in the blob stream class to a byte array. It doesn't work at all though, the array just remain empty afterwards.