Autodesk MapGuide Enterprise
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can I get the data from MgByteReader, and turn to Stream Reader; so I can make a pdf map using iTextSharp?
Re: MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You can try this class I wrote, that provides a System.IO.Stream adapter over the MgByteReader:
http://trac.osgeo.org/mapguide/browser/trunk/MgDev
- Jackie
Re: MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you Jackie,
when I add your class to my project, I found I cannot reference the namespace OSGeo.MapGuide.Viewer; And Line 216 "Strings" not exist in the context. I am pretty new, can you help me more? Thanks again.
Re: MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Did I need other assembly class files?
Re: MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
That file can't just be dropped in, so change/rename the namespace
Strings.ErrorStreamNotRewindable is just a localizable message, just replace it with something equivalent
- Jackie
Re: MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I create a new class file and paste your code there, but still I cannot new a MgReadOnlyStream. I cannot find the problem is.
Re: MyByteRead er to Stream Reader
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Finally I get the MgReadOnlyStream. Thank you Jackie.

