Thanks for your answer

unfortunatly even using your code I have no more success 
code is always 200

Can there is a link to that fact that I send json data ?


public static void publishData(HttpServletResponse response,
            byte[] msgByte, int secondsToCache) throws Exception {
        if (null != msgByte) {
             
             response.setHeader("Cache-Control", "public, max-age=3600");
            //response.setHeader("Cache-Control", "public, 
max-age="+secondsToCache);

            ServletOutputStream out = response.getOutputStream();
            response.setBufferSize(msgByte.length);
            response.setContentLength(msgByte.length);

            
            out.write(msgByte, 0, msgByte.length);

            out.flush();
            out.close();
        } else {
            noDataService(response);
        }
    }

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/hodnXlOlKxgJ.
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-appengine-java?hl=en.

Reply via email to