There seems to be so many ways of uploading images to a PHP enabled server, it is difficult to make sense of the various options and under what circumstances it is prefereable to use one over the other. On the front end you have the option to JPGencode or not, use a ByteArray or not, further compress the ByteArray or not. On the server side, assuming one is using PHP, there is the option of whether to use third party remoting (ZendAMF or AMFphp) or not and what the pros cons of each are.
What I see as the core sequence of steps on the front end, regardless of options
- A Bitmapdata object is created representing the image that is to be uploaded-saved to the server.
If using JPG encoding the BitMapdata is encoded, if not skip and proceed to step 3.
If using a ByteArray, a new byteArray object is instantiated and made equal to either 1 or 2, if not skip and proceed to step 4.
Connect to service -upload-save image data
Can anyone correct and or elaborate on the above?