Project

General

Profile

Actions

Bug #4366

closed

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

Added by Jing Tao about 15 years ago. Updated over 14 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.

Actions #1

Updated by ben leinfelder over 14 years ago

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

Actions #2

Updated by ben leinfelder over 14 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.

Actions #3

Updated by ben leinfelder over 14 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.

Actions #4

Updated by ben leinfelder over 14 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

Actions #5

Updated by ben leinfelder over 14 years ago

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

Actions #6

Updated by ben leinfelder over 14 years ago

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

Actions #7

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4366

Actions

Also available in: Atom PDF