<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
In my experience, the MgByteReader and friends are very hostile in the
.Net environment.<br>
You cannot read more than 8K at a time, and you cannot pass the
MgByteReader to a function without loosing the content.<br>
Most inspections from the Studio debugger also empties the MgByteReader.<br>
<br>
I saw a post with working MgByteReader to System.Net.Stream code on
this list. Try searching the posts.<br>
If you do find the code, there is a Wiki with common code stub, and it
would probably be nice to have that code there too.<br>
<br>
There should be a size difference between the PNG and JPG, as the PNG
only uses lossless compression.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
monegodj skrev:
<blockquote cite="mid:14035570.post@talk.nabble.com" type="cite">
<pre wrap="">The .net api wraps mapguide exceptions in .net exceptions, so it would give
me a stack trace if it failed.
There was a big difference between the size of the png and the jpg, so I
assumed that there had been some significant output, but using a hex editor
it looks like both are just big blocks of zeros.
-Dan
JasonBirch wrote:
</pre>
<blockquote type="cite">
<pre wrap="">It's not raising any exceptions? I have no idea how this works in .Net,
but in PHP MapGuide uses a custom exception so you can't just catch
plain PHP exceptions...
Have you tried looking at the content of the file that is created to see
if there are any clues?
Jason
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>