File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Need help related to content type issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Need help related to content type issue" Watch "Need help related to content type issue" New topic
Author

Need help related to content type issue

Abhishek Purwar
Ranch Hand

Joined: Dec 15, 2007
Posts: 63

Hi Friends,

I have an issue related to content type. In my web application, I have different type of resources like css, images (.jpg, .gif, .png, etc.), htmls, xmls, etc.
I try access these contents by directly hitting the resource url. Irrespective of what content it is, every resource has same content-type header i.e. "text/html; charset=UTF-8" and hence image is getting parsed by browser so image is not visible instead it shows some character stream.
Kindly suggest how to fix this issue so that every content has proper content-type header.

Thanks in advance to all.

Regards,
Abhishek


Abhishek Purwar,
Bangalore.
 
Don't get me started about those stupid light bulbs.
 
subject: Need help related to content type issue
 
Similar Threads
REST, XML over HTTP, Web Services?
Need suggestion regarding an issue related to content type header
HF book pg133 ~ setHeader("content-type")
check if there is a gif viewer
Problem with Target Attribute