I have an AS3 swf that users can upload jpg images to my EC2 instances that are sitting behind and balancing the elastic load. Jpg images are converted to bytearray data and sent using URLLoader.load (URLRequest)
I make 2 calls at boot time, one to download a large version, then another to download thumbnails. PHP script to which bytearray data is loaded converts it to a file usingfile_put_contents($destination, $GLOBALS["HTTP_RAW_POST_DATA"])
Is it possible to combine these two requests into one request, which contains both byte data for large and small images, and "split" HTTP_RAW_POST_DATA to create 2 files on the server. That would be better than loading a bytearray for a large version, and then using something like ImageMagick to resize the resulting image into a thumbnail, which I understand is another option.
any suggestions? greetings
source
share