0
이미지를 라우팅하고 imageRouteHandler를 통해 크기를 조정합니다. 다음은 코드입니다. 내가 알고있는 WebImage.Write()
응답에 기록됩니다RouteHandler의 WebImage에서 크기가 조정 된 이미지 반환
The route handler '...ImageRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.
public class ImageRouteHandler : IRouteHandler
{
public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
var filePath="(from Request Context)"
var image = new WebImage(filePath);
image = image.Resize(width, height);
image.Write();
return null;
}
}
나는이 오류를 얻고있다. 그 밖의 무엇이 여기에 필요합니까? return null;
전에