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 hear

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
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-08-31 Thread Jonio, Dennis \(Aviation\)
= rs.GetResourceContent(resId).Read(byteBuffer, (int)long_length); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Campbell, Keith A Sent: Friday, August 31, 2007 7:10 AM To: MapGuide Users Mail List Subject: [mapguide-users] ByteReader Problem I am trying to alter

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
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 byte reader to a function

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
-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[] byteBuffer = new byte[long_length

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
: [mapguide-users] ByteReader Problem Thanks Dennis. I've tried this, but I'm only getting 8192 bytes read into the byte buffer. This seems to be the problem mentioned by Kenneth. The Read method doesn't seem to allow the start location for the read to be set, so looping until the entire content

Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S
] *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 to work long