Re: Show 'n Tell Thursday: Setting the Content-type from a Java agent (30 Mar...
I just wanted to extend your good tip by telling that all HTTP headers can be set this way. The important thing is that nothing else is printed before the http-header. For example you could add cache...
View ArticleRe: Show 'n Tell Thursday: Setting the Content-type from a Java agent (30 Mar...
Is it possible to return a jpeg image using PrintWriter and by setting the content type to image/jpeg?
View ArticleRe: Show 'n Tell Thursday: Setting the Content-type from a Java agent (30 Mar...
Not exactly on topic but I'll answer anyway. You cannot return bytes using a java.io.Writer instance since it is designed for textual data. You might want to check out my post on creating a download...
View Article
More Pages to Explore .....