0

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?

Corsair
  • 1,044
  • 3
  • 10
  • 25

1 Answers1

1

Yes that should be no problem. There are two ways to solve it.

  1. 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">

  2. 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:

  1. Server-side node canvas
  2. Use JAVA libraries to generate PNGs (see here for more details)
Community
  • 1
  • 1
Ümit
  • 17,379
  • 7
  • 55
  • 74
  • Hello, and thanks for your reply! I guess the AWT graphics class suits exactly what I need. Lets see if I can make good use of it... – Corsair Jun 06 '12 at 20:21