File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 60057
    
  65

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?
 
Similar Threads
type="file"
Get File Type
overlay jpeg with text
How to apply the filter for file selection
Display image in jsp