本文介绍了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:ImageCropper在服务器上不工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 00:09