使用S3Reader2插件作为API

时间:2016-05-16 11:55:46

标签: imageresizer

您能提供一个使用ImageReesizer.ImageBuilder.Current.Build的S3Reader2插件的示例吗?

我想通过Response.Output / Response.Write

输出S3图像

Thnx提前

1 个答案:

答案 0 :(得分:0)

如果您要将输出发送到Response,那么您应该使用URL API;编写自己的处理程序会引入很多问题。

也就是说,使用.Build的S3插件很容易。只需提供如下虚拟路径:

ImageBuilder.Current.Build("~/s3/mybucket/myfile.jpg", outstream, instructions);

相关问题