RE: [mapguide-users] ByteReader Problem

2007-09-04 Thread Campbell, Keith A
Thanks Dennis, I'll look into it. Keith From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonio, Dennis (Aviation) Sent: 04 September 2007 11:32 To: MapGuide Users Mail List Subject: RE: [mapguide-users] ByteReader Problem Glad to he

RE: [mapguide-users] ByteReader Problem

2007-09-04 Thread Jonio, Dennis \(Aviation\)
:[EMAIL PROTECTED] On Behalf Of Campbell, Keith A Sent: Monday, September 03, 2007 8:26 AM To: MapGuide Users Mail List Subject: RE: [mapguide-users] ByteReader Problem Great, that seems to work, thanks. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [mapguide-users] ByteReader Problem

2007-09-03 Thread Campbell, Keith A
Great, that seems to work, thanks. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonio, Dennis (Aviation) Sent: 31 August 2007 17:04 To: MapGuide Users Mail List Subject: RE: [mapguide-users] ByteReader Problem This is what I use in real life

RE: [mapguide-users] ByteReader Problem

2007-09-03 Thread Campbell, Keith A
I'm using 1.1.0, so maybe that is where the problem is. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth, GEOGRAF A/S Sent: 03 September 2007 12:48 To: MapGuide Users Mail List Subject: Re: [mapguide-users] ByteReader Problem Very od

Re: [mapguide-users] ByteReader Problem

2007-09-03 Thread Kenneth, GEOGRAF A/S
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Kenneth, GEOGRAF A/S *Sent:* 31 August 2007 17:14 *To:* MapGuide Users Mail List *Subject:* Re: [mapguide-users] ByteReader Problem The only way around it, that I have found, is to copy/paste code

RE: [mapguide-users] ByteReader Problem

2007-09-03 Thread Campbell, Keith A
Behalf Of Kenneth, GEOGRAF A/S Sent: 31 August 2007 17:14 To: MapGuide Users Mail List Subject: Re: [mapguide-users] ByteReader Problem The only way around it, that I have found, is to copy/paste code like this: System.IO.MemoryStream ms = new System.IO.MemoryStream(); byte[] buf = new byte[8

Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S
EMAIL PROTECTED] *On Behalf Of *Jonio, Dennis (Aviation) *Sent:* 31 August 2007 14:05 *To:* MapGuide Users Mail List *Subject:* RE: [mapguide-users] ByteReader Problem ... this sequence tends to work // For some reason the MgByteReader "disappears" // This seems

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
August 2007 14:05 To: MapGuide Users Mail List Subject: RE: [mapguide-users] ByteReader Problem ... this sequence tends to work // For some reason the MgByteReader "disappears" // This seems to work long long_length = rs.GetResourceContent(resId).

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
bject: RE: [mapguide-users] ByteReader Problem ... this sequence tends to work // For some reason the MgByteReader "disappears" // This seems to work long long_length = rs.GetResourceContent(resId).GetLength(); byte[] byt

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
Mail List Subject: Re: [mapguide-users] ByteReader Problem The "ToString()" is not implemented, and thus returns "MgByteReader", which you cannot use as an XML document. The MgByteReader is very volatile and fragile, when you try to debug it with VS. Any attempt to pass the

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
... this sequence tends to work // For some reason the MgByteReader "disappears" // This seems to work long long_length = rs.GetResourceContent(resId).GetLength(); byte[] byteBuffer = new byte[long_length]; int numBytes = rs.GetResourc

Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S
The "ToString()" is not implemented, and thus returns "MgByteReader", which you cannot use as an XML document. The MgByteReader is very volatile and fragile, when you try to debug it with VS. Any attempt to pass the byte reader to a function (as a parameter) will clear the stream. You cannot r