图像未加载到USER MACHINE上 [英] Image not loading on USER MACHINE

查看:99
本文介绍了图像未加载到USER MACHINE上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI EXPERTS



我开发了一个Windows应用程序。它在我的电脑上工作正常。当我尝试在图片框上加载用户计算机图像时。显示错误为 System.IO.IOException:目录名无效。



我没有使用图片框控件。我正在使用第三方组件来加载图片。





请提供建议。



Rgds

Jagadesh

HI EXPERTS

I have developed a windows application. Its working fine in my pc. When i try to run on User Machine image not loading on Picture box. Showing error as System.IO.IOException: The directory name is invalid.

I not using a picture box control. I am using a third party component for loading the image.


Please provide suggestions.

Rgds
Jagadesh

推荐答案

请参阅我对该问题的评论。怎么办?



老实说,你会找到足够多的代码示例: http://www.codeproject.com/search.aspx?doctypeid=1&q=database+%28image+OR+images%29 [ ^ ]。



-SA
Please see my comment to the question. What to do?

Honestly, you will find more than enough code samples: http://www.codeproject.com/search.aspx?doctypeid=1&q=database+%28image+OR+images%29[^].

—SA


您的计算机有D盘。另一台计算机没有D盘。崩溃。

解决方案:如果您必须先将图片写入磁盘上的文件,请使用现有文件夹。一个例子是System.IO.Path.GetTempPath()。不要忘记事后清理。
Your computer has a D drive. The other computer has no D drive. Crash.
Solution: if you have to write the picture to a file on disk first, use an existing folder for that. An example is System.IO.Path.GetTempPath(). Do not forget to clean up afterwards.


这篇关于图像未加载到USER MACHINE上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆