javax.imageio.IIOException:无法从URL获取输入流!(javax.imageio.IIOException: Can't get input stream from URL!)
我在java代码中编写代码以保存指定链接的图像。 它大多数工作正常,但有一段时间它会引发异常,即“javax.imageio.IIOException:无法从URL获取输入流!在javax.imageio.ImageIO.read(ImageIO.java:1369)”
每当这个异常抛出时,我检查浏览器中的URL,它会一直纠正。
请给我建议一些解决方案来解决这个问题。
谢谢!
I write a code in java code to save images from specified links. It works fine mostly, but some time it throws an exception ie "javax.imageio.IIOException: Can't get input stream from URL! at javax.imageio.ImageIO.read(ImageIO.java:1369)"
Whenever this exception throws I check the url in browser, it will correct always.
Please suggest me some solution to solve this problem.
Thanks!
原文:https://stackoverflow.com/questions/3787966
最满意答案
以下应该工作,但它不会是SEO兼容。 最好将标题放在标题标签中。
<script type="text/javascript"> $(document).ready(function() { document.title = 'blah'; }); </script>
The following should work but it wouldn't be SEO compatible. It's best to put the title in the title tag.
<script type="text/javascript"> $(document).ready(function() { document.title = 'blah'; }); </script>
相关问答
更多-
以下应该工作,但它不会是SEO兼容。 最好将标题放在标题标签中。 The following should work but it wouldn't be SEO compatible. It's best to put the title in the title t ...
-
所有将被执行和首先被称为第一次运行基础! Where's your jquery ref?
-
两个名字$和jQuery是同义词。 jQuery更加明确; 如果您使用其他框架,则可能会覆盖$ 。 如果您将函数作为第一个参数传递给jQuery函数(或者显然,为$ ),那么它会像调用jQuery(document).ready 。 所以是的,它完全一样。 事实上,所有这些在功能上都是等价的(假设你没有其他东西在用$ ): $(document).ready(function() {}); jQuery(document).ready(function() {}); $(function() {}); jQ ...
-
发布后,我意识到我做错了什么。 function showLoading() { loadingControl.show(); } 应该 showLoading = function() { loadingControl.show(); } Right after posting, I realized what I had done wrong. function showLoading() { loadingControl.show(); } should be sh ...
-
看起来我的IE安装有问题。 在John Pick的评论之后,我试图重新安装IE,看看是否能解决问题。 不幸的是,我仍然在我自己的机器上遇到问题但是因为它适用于我曾经测试过的其他人,所以我会将其标记为已回答。 It would seem that I have a faulty install of IE. After John Pick's comment I attempted to re-install IE and see if that would resolve the problem. Unfo ...