Project

General

Profile

Bug #4366

morpho should display common mime types (e.g., images)

Added by Jing Tao almost 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
morpho - general
Target version:
Start date:
09/03/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4366

Description

Bug 4365 will give user the ability to import other entity. So we should have morpho can display those otherEntity, i.e. images.

History

#1 Updated by ben leinfelder about 9 years ago

Images and text are now being displayed correctly.
PDFs and other binary files will still show as text with crazy characters...

#2 Updated by ben leinfelder about 9 years ago

I'm using the MIME type from
javax.activation.MimetypesFileTypeMap
which may or may not include all mime types we'd be interested in, depending on the user's system.
I notice the png and xls are not interpreted and become just application/octet stream with the default mime.types file in the activation.jar.
We could include a beefier mime.types file in the Morpho distribution or programmatically enter specific mime types or just leave it.

#3 Updated by ben leinfelder about 9 years ago

I'll make sure to augment the MIME-type handling to include:
pdf
xls
mdb
png
csv
tab
and any others that are added to this bug.

For non-displayable files (pdf), we should not show them as text (as is currently the case).

Jim's request:
All data entities should be exportable on their own.

#4 Updated by ben leinfelder about 9 years ago

I'm going to see about adding the mime.types file to the morpho-config.jar under the META-INF/ directory as described here:
http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/javadocs/javax/activation/MimetypesFileTypeMap.html

#5 Updated by ben leinfelder about 9 years ago

now packaging the mime.type in META-INF/
we can add more as needed.

#6 Updated by ben leinfelder about 9 years ago

closing this now. if we need more mime types mapped, then we can add them as needed

#7 Updated by Redmine Admin about 6 years ago

Original Bugzilla ID was 4366

Also available in: Atom PDF