如何解决这个问题.当我上载影像系统r show时(GDI +中发生了一般性错误. [英] how to resolve this problm .when i upload a images system r show (A generic error occurred in GDI+.

查看:85
本文介绍了如何解决这个问题.当我上载影像系统r show时(GDI +中发生了一般性错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决此问题.当我上载图像系统r show时(GDI +中发生一般错误.

how to resolve this problm .when i upload a images system r show (A generic error occurred in GDI+.

推荐答案

一般错误的正常原因发生在GDI + ...中的错误是,当您尝试创建实际图像时,您没有传递有效的图像数据(或至少是Image类可以理解为图像的任何内容).

没有您的代码,我们就不可能精确,但是要检查从到达点到显示点的数据,并确保在每个阶段都是正确的-正常的错误是无意中将类名存储在数据库,而不是实际的图像数据,或者尝试通过将其连接到SQL命令字符串中来尝试保存信息.
The normal reason for "A generic error occurred in GDI+..." errors is that you are not passing valid image data (or at least anything that the Image class understands as an image) when you try to create the actual image.

Without you code, we can''t be precise, but check the data from teh point it arrives to the point you display it, and make sure it is correct at each stage - the normal mistakes are to accidentally store the class name in a database instead of the actual image data, or to attempt to save information by concatenating it into an SQL command string.


"GDI + ...中发生了一般性错误"是常见的错误消息当您处理图形时.
原因可能是
1.如果要将图像上传到服务器,则服务器位置可能没有足够的访问权限(写许可权).
2.在上传过程中,如果无法读取图像,则也会出现相同的错误.
3.如果在两次之间再次发生任何异常,则会得到相同的错误.

因此,请查看堆栈跟踪(您可以发布相同的消息)以了解究竟是什么错误.
"A generic error occurred in GDI+..." is a common error message when you are dealing with graphics.
The reason may be,
1. If you are uploading the images to the server, then perhaps the server location might not be having enough access(write permission).
2. During upload, if the image cannot be read, then that also gives the same error.
3. If any exception occurs in between again you get the same error.

So, please see the stack trace (you can post the same) to know, what exactly is the error.


这篇关于如何解决这个问题.当我上载影像系统r show时(GDI +中发生了一般性错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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