Hi all,
I need to show image(thumbnail) in view page using controller/action.(like: /Image/Thumbnail) I can send image file that is stored locally by calling the method in controller.
// sample code
public FileResult Thumbnail()
{
// get image
Stream outFile = System.IO.File.Open("c:\\test.jpg", FileMode.Open);
// send image
return File(outFile, "image/jpeg");
}
How can I send image file that is stored in Amazon S3 ?
Can I use Amazon S3 URL in the above method to return image ? --> http://bucketname.s3.amazonaws.com/test.jpg?AWSAccessKeyId=AKIAIDLH65EJ6LSWERDF&Expires=1266497098&Signature=lopDEDErjNLy2uz6X6QCNlIjkpB0%3D
Thanks