Anders:ImageCropper在服务器上不工作。 [英] Anders:ImageCropper Not Working on server.

查看:130
本文介绍了Anders:ImageCropper在服务器上不工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...



我已经实现了Anders:ImageCropper控件。它在我的本地系统上工作正常,但在我的实时网站图像上没有显示此控件。



如何解决这个问题?



我的代码如下。



.aspx页

Hi...

I have implemented Anders:ImageCropper control. it''s working fine with my local system but on my live site image is not display with this control.

How to solve this issue?

my code is below.

.aspx page

< anders:imagecropper id="crop" maintainaspectratio="true" capturekeys="false" cropenabled="true" xmlns:anders="#unknown">
                            CroppedImageHeight="200" CroppedImageWidth="320" JpegQuality="75" AlternateText="Crop image"
                            runat="server" /&gt;</anders:imagecropper>



.cs文件


.cs file

imgStream = fileUpdChangePhoto.PostedFile.InputStream;
imgLen = fileUpdChangePhoto.PostedFile.ContentLength;
imgBinaryData = new byte[imgLen];
n = imgStream.Read(imgBinaryData, 0, imgLen);
imgBinaryData = ReadByteArrayFromFile(strFilePath); 
crop.SourceImage = imgBinaryData;



web.config:


web.config:

<httphandlers>
 <add path="CropImage.axd" verb="*" type="Anders.Web.Controls.ImageCropperHttpHandler" validate="false" />
</httphandlers>



.dll

Anders.Web.Controls.dll


.dll
Anders.Web.Controls.dll

推荐答案

获得帮助的最佳方式可能是联系控件的作者Anders。



因为它不是标准控件,所以可能没有很多人都有这方面的经验...(然后再说一次:有+ 7M用户,应该至少有几个......)
The best way to get help is probably to contact Anders, the author of the control.

Because it is not a standard control, there might not be that many people here who have experience with it... (Then again: With +7M users, there ought to be at least a few...)


这篇关于Anders:ImageCropper在服务器上不工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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