Reputation: 1044
for my GWT app i am tranferring Data to the client which is using the data to draw on a canvas. The Problem is that the tranfer of this data consumes too much bandwidth.
My question is: could I create a png file in a similar way on the server and just send it to the Client?
Upvotes: 0
Views: 388
Reputation: 17489
Yes that should be no problem. There are two ways to solve it.
If you just want to display the image: Create a IMG
widget and set the src to a server url which generates the PNG. (<img src="http://myHost/loadImage?id=12">
If you want to work with the image: Use RequestBuilder
to transfer the PNG to the client. See here and here for more details.
Update: For the backend side there are also different solutions:
Upvotes: 1