Excuse me Agito M, I'm intereseted in this solution. You said that "Code on 
the client side didn't change from what I earlier posted.". What do you 
mean? How do you call the servlet and how do you process the result and 
create the image client side? Please, could you possibly post some code to 
let me understand this? Thanks.

Il giorno martedì 27 settembre 2011 12:56:12 UTC+2, AgitoM ha scritto:
>
> Decided to deal with the 32kb limit in Internet Explorer 8. (Internet 
> Explorer 9 is not a problem). 
> Dealt with the problem by creating a servlet that outputs the byte 
> array as a image. 
> I'm sending the ID of the image, in this case a map, to the servlet 
> using the GET method. 
>
> This is the code for the doGet operation for my dedicated 
> ImageServlet: 
>
> protected void doGet(HttpServletRequest request, HttpServletResponse 
> response) throws ServletException, IOException { 
>                 response.setContentType("image/png"); 
>
>                 if(request.getParameter("MapID") != null) { 
>                         int mapID = 
> Integer.parseInt(request.getParameter("MapID")); 
>
>                         byte[] image = null; 
>                         try { 
>                                 image = wsStub.getMapImage(mapID); 
>                         } 
>                         catch (Exception e) { 
>                                 e.printStackTrace(); 
>                         } 
>
>                         OutputStream out = response.getOutputStream(); 
>                         out.write(image); 
>                         out.close(); 
>                 } 
>         } 
>
> On my RPC Servlet side, I simply return this as the "URL" of the 
> image: 
> ("ImageServlet?MapID=" + mapID) 
>
> Code on the client side didn't change from what I earlier posted.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vy4W1UY8CHkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to