You'll want the middle-tier to acquire the image bytes and store them on the web server. Then you'll want to return these image URLs to the GUI in some way, say, using RPC. Or, you put the images on your middle-tier and the have a servlet that fields parameterized image requests and returns the corresponding image.
Basically, you don't want to try and send image bytes through RPC ... avoid that and you should be fine. On Feb 8, 12:55 am, tdk <[email protected]> wrote: > Folks'es, > > I have the following situation with images (and none of the > discussions I found seemed appropriate): > > + I have a GUI that shows a tree with tree items > + each tree item has an associated image, depending on its type > + the tree data incl images is loaded via RPC > + the servlet runs on a middle-tier and gets its data from a back-end > server via a defined API > + all data, incl images, comes from the back-end server and is to be > sent to the GUI > > what is the best way to do this and > what do I need to pass the image to the TreeItem > > Thomas > > PS: I'm an absolute newbie to GWT and RPC, fairly new to web apps, but > I know my Swing inside-out... -- 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=en.
