Posted by a ceTe Software moderator
Hello,
In order to open a stream you can use the below sample code.
stream.Seek(0, SeekOrigin.Begin);
byte[] contents = new byte[stream.Length];
stream.Read(contents, 0, contents.Length);
stream.Close();
GCHandle gch = GCHandle.Alloc(contents, GCHandleType.Pinned);
IntPtr contentsIntPtr = gch.AddrOfPinnedObject();
dynamicPDFViewerControl1.OpenBuffer(contentsIntPtr, contents.Length, "");
Thanks,
ceTe Software Support Team.