Maksim,<br><br>You can refer to the example <a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALRead.cs">http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALRead.cs</a> to see how to read data into a byte array and then you can write this array directly to the memory stream.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2011/7/31 Maksim Sestic <span dir="ltr"><<a href="mailto:max@geoinova.com">max@geoinova.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana">Hi all,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana">Is there any example of OGR driver writing to memory stream
(instead of file stream), in .NET?<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana">Regards,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana">Maksim Sestic<u></u><u></u></span></font></p>
</div>
<br><br>__________ Information from ESET NOD32 Antivirus, version of virus signature database 6338 (20110731) __________<br><br>The message was checked by ESET NOD32 Antivirus.<br><br><a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
</div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>