Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFOg2nCf9E0noFvlzgRArFKAKCdLZoyr+hMBQxgzW7u+WQTXUbwbgCgtlXp
53CXK76KagOxC1yzo+aDYCg=
=RIKF
-----END PGP SIGNATURE-----
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
No comments:
Post a Comment