How to load secure S3 images into Flex with temporary URLs
Posted
by Yarin
on Stack Overflow
See other posts from Stack Overflow
or by Yarin
Published on 2010-05-12T04:46:23Z
Indexed on
2010/05/12
4:54 UTC
Read the original article
Hit count: 277
I have some secure images on S3 that I need to load into Flex. I was expecting to be able to do this using signed temporary URLs but can't get it working. I know the URLs I'm generating are correct, because they load fine in my browsers' address bar. Moreover, Flex has no problem loading my images with a non-signed url when they are public, but as soon as I try signing the urls all the images fail, whether public or not.
I've tried image.source = signedURL, image.load(signedURL), etc. If I try loading the file with URLLoader/URLStream, it looks like I'm getting the data OK, but I'm not sure how to translate those results to an Image control.
Is this just an issue with the Image control not being able to recognize signed urls? Do I have to load the image from a byte array? What would that look like?
© Stack Overflow or respective owner