As far as I know, what I ask here is not possible, but I thought that I would ask anyway if I missed something.
Suppose you want users to upload JPG images, and these images are scaled to smaller icons, and the original images are always discarded and are no longer needed. Is there a way that usually works in most modern browsers that would allow the user to select one image on their hard drive, LOCALY turned into a thumbnail and uploaded the created thumbnail to the server?
In the case when the server just needs a small image, it would be wasteful both in user time and in the server resources to continue downloading the entire image, only to immediately discard it. It would be much better to simply scale it on the client.
I can imagine three options. Just HTML / Javascript using Flash or using Java. If it were possible with Flash, it would look like the best option. But, reading the flash.net.FileReference documentation, it seems that you can download the file from HD yes, but you cannot look at the download file. On the other hand, if you enable “local file access” in the Flash publishing options, it seems that you can no longer access the network, so this will not work.
With HTML / Javascript, you can load images and display them on <canvas> , but if you try to access the pixels of these images, you will get security breaches so that they do not work.
Java I do not dare to use it, because only 96.52% of my users installed it, and the dialogs for downloading the files that I saw implemented in Java (for example, on Facebook) did not work (unresponsive interface). Interestingly, though, if Java is the only thing that allows you to resize images from local HD?