Dec 19th, 2008, 06:35 AM
Abstract Views and contentTypes
I am useing a Repository to strore some documents and Images.
When i display the stored images i use the Abstract View set the outputstream and the contenttype of "image/jpeg" which works fine.
Now that i want to display the Documents i am a bit confused about the diffrent contentTypes.
So far i just took the file ending and for a certain file ending i picked a content type from this list: http://jackrabbit.apache.org/jackrab...xtractors.html
But sometimes like for MSWord there are two types on that list
So i was wondering if i am doing it wrong and if there is another way that i have to do it:-)
Anyhow i am afraid that picking the wrong contentType will break the display of the Documents.
If anyone of you guys had some infos for me i would be really happy:-)
Thx a lot in advance!