<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>MgByteSink ToFile method?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">How is the MgByteSink::ToFile method succesfully used?&nbsp; When I attempt to utilize it in a .NET program,&nbsp; I get the following error message no matter what I use for the path:</FONT></P>

<P><FONT FACE="Times New Roman">A file IO exception occurred: test.pngA file IO exception occurred: test.png Exception occurred in method MgByteSink.ToFile at line 220 in file c:\build_tux_area\mgdev\common\service\data\ByteSink.cpp </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thank you.</FONT>
</P>

<P><FONT SIZE=1 FACE="Tahoma">Andy Morsell, P.E.</FONT>

<BR><FONT SIZE=1 FACE="Tahoma">Spatial Integrators, Inc.</FONT>

<BR><A HREF="http://www.SpatialGIS.com"><U><FONT COLOR="#0000FF" SIZE=1 FACE="Tahoma">http://www.SpatialGIS.com</FONT></U></A>
</P>

</BODY>
</HTML>