On 28/09/11 17:44, German Castellar wrote: [...] > I have a client requirement for uploading images of aprox 5 Mb. Due to > a bandwidth constraint i need to compress this images and upload them > using GWT.
You want to use the HTML5 File API to read the file client-side and then mangle them how you wish: http://www.html5rocks.com/en/tutorials/file/dndfiles/ http://code.google.com/p/lib-gwt-file/ Actually decompressing the image into memory and recompressing it into a different format will be... exciting, unfortunately. You'll have to port some existing code. I do have a library that provides InputStream, OutputStream etc that might help but it doesn't understand the HTML5 File API. (Might be useful for me to add.) -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "Under communism, man exploits man. Under capitalism, it's just the │ opposite." --- John Kenneth Galbrith
signature.asc
Description: OpenPGP digital signature
