获取文件缩略图时出现问题 [英] Problem while getting files' thumbnail

查看:74
本文介绍了获取文件缩略图时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我制作了一个将文件加载到listviews中的应用程序,这些文件有一个大缩略图,可通过以下代码实现:



http://www.datafilehost.com/get.php?file=3510e755

(这么长的代码所以上传了一个文本文件...... )



它的功能就像一个魅力除了......除非* .mp3文件没有专辑封面,所以它没有缩略图......然后应用程序崩溃在包含throw ex的行并说NotImplementedException...



我无法解决它所以我会非常感激求助...



也许是一个代码,用于检索文件是否有缩略图或只是一个简单的图标...



在此先感谢...

Hi,

I've made an app which loads files into listviews, and those files have a large thumbnail which is achieved by this code:

http://www.datafilehost.com/get.php?file=3510e755
(so long code so uploaded a text file...)

It works like a charm except... Except when an "*.mp3" file doesn't have a album cover so it has no thumbnail... Then app crashes on the line which contains "throw ex" and says "NotImplementedException"...

I got no way to solve it so I'll be really thankful for help...

Maybe a code which retrieves whether the file has a thumbnail or just a simple icon...

Thanks in advance...

推荐答案

NotImplementedException 通常由程序员使用表示某个功能或工作流已被存根,但实际上未实现,或偶尔表示cond意外/不应该发生的ition或状态。



在你的情况下听起来应用程序不希望遇到没有缩略图的文件,所以抛出异常。



唯一的解决方案是:

1.不要提供类似的文件。

2.获取源代码并让它跳过这些文件。
NotImplementedException is typically used by a programmer to indicate that a feature or workflow has been stubbed in, but not actually implemented, or occasionally to indicate a condition or state that is unexpected/shouldn't happen.

In your case is sounds like the application does not expect to encounter a file without a thumbnail, and so the exception is thrown.

The only solutions are:
1. Don't feed it files like that.
2. Get the source code and have it skip these files.


这里有这样的拥有者,我的问题还没有解决,

<大>感谢很多!!!!!!
With such withholders here, my problem is not solved yet,
THANKS ALOT!!!!!!


这篇关于获取文件缩略图时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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