admin管理员组文章数量:1400771
why this dot net maui code is giving null in _cadImage when running in android ? NOTE: it is working in windows.
private void LoadImage(SKPaintSurfaceEventArgs e, SKCanvas canvas)
{
try
{
string fileName = "CADproject.Doc.sample.dwg";
string appDataPath = FileSystem.AppDataDirectory;
string localFilePath = Path.Combine(appDataPath, fileName);
if (!File.Exists(localFilePath))
{
using (Stream resourceStream = GetType().Assembly.GetManifestResourceStream(fileName))
{
if (resourceStream == null)
{
throw new FileNotFoundException("Embedded resource not found.", fileName);
}
using (FileStream fileStream = new FileStream(localFilePath, FileMode.Create, FileAccess.Write))
{
resourceStream.CopyTo(fileStream);
}
}
}
cadFilePath = localFilePath;
_cadImage = (CadImage)Aspose.CAD.Image.Load(cadFilePath);
}
this is working for windows, but when running for android, the _cadImage
is showing null, while in windows it is perfectly loading _cadImage
本文标签: netAspose CAD file not loading in androidStack Overflow
版权声明:本文标题:.net - Aspose CAD file not loading in android - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744249600a2597186.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论