well the first thing you should do, of course, is to see if you can
make the conversion on the server. If it's already sending you the
string of bytes, maybe it can decide what to do with it and then
output an image to download.

If that's not possible (if the client really needs to alter the data,
for instance), you could always do a roundtrip back to the server and
have it generate an image.

Finally, there's canvas. Canvas and its createImageData() method are
not widely supported (in terms of marketshare), but should be able to
do what you need to do.

Here's a project someone did that's really the reverse of what you
want to do, but should give you a good lead:
http://blog.nihilogic.dk/2008/05/compression-using-canvas-and-png.html

On Nov 20, 3:21 am, Naveen <[email protected]> wrote:
> HI..
>
> Greetings...
>
> i am using GWT for one of my application development and found a
> problem where i cannot proceed further.
>
> I need to send a stream of bytes from the sever to the GWT client and
> create an image using the response in client side. I had tried my best
> but cannot achieve this.
>
> i am struck up with this and cannot proceed further
>
> Any help is much appreciated..
>
> Thanks,
> Navee

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.


Reply via email to