[mapguide-commits] r4835 - trunk/Tools/Maestro/MaestroAPI
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed May 5 06:43:41 EDT 2010
Author: jng
Date: 2010-05-05 06:43:39 -0400 (Wed, 05 May 2010)
New Revision: 4835
Modified:
trunk/Tools/Maestro/MaestroAPI/LocalNativeConnection.cs
Log:
Fix UploadPackage() implementation for LocalNativeConnection. The MgByteReader constructor could not handle the Sheboygan package. This was fixed by using MgByteSource instead and using the result of GetReader()
Modified: trunk/Tools/Maestro/MaestroAPI/LocalNativeConnection.cs
===================================================================
--- trunk/Tools/Maestro/MaestroAPI/LocalNativeConnection.cs 2010-05-05 08:34:51 UTC (rev 4834)
+++ trunk/Tools/Maestro/MaestroAPI/LocalNativeConnection.cs 2010-05-05 10:43:39 UTC (rev 4835)
@@ -795,7 +795,8 @@
callback(0, fi.Length, fi.Length);
MgResourceService res = this.Con.CreateService(MgServiceType.ResourceService) as MgResourceService;
- MgByteReader rd = new MgByteReader(filename, "application/octet-stream");
+ MgByteSource pkgSource = new MgByteSource(filename);
+ MgByteReader rd = pkgSource.GetReader();
res.ApplyResourcePackage(rd);
rd.Dispose();
More information about the mapguide-commits
mailing list