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
*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
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
= 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
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
-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
: [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
] *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