aspose file tools*
The moose likes Servlets and the fly likes Can I change the response mime type midway? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can I change the response mime type midway?" Watch "Can I change the response mime type midway?" New topic
Author

Can I change the response mime type midway?

utsav gupta
Ranch Hand

Joined: Mar 19, 2009
Posts: 57
Hi

I wish to send a jpeg file to the browser followed by some text. How can i achieve that? Do i have to change the content type after writing the jpeg file in output stream to plain text?

Thanks
utsav.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61226
    
  66

No.

One request == one response.

What are you actually trying to accomplish?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I change the response mime type midway?