Quantcast
Channel: lekkimworld.com - Show 'n Tell Thursday: Setting the Content-type from a Java agent (30 Mar 2006)
Browsing latest articles
Browse All 3 View Live

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 Article



Re: 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 Article

Re: 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
Browsing latest articles
Browse All 3 View Live




Latest Images