Bug #4366
closedmorpho should display common mime types (e.g., images)
0%
Description
Bug 4365 will give user the ability to import other entity. So we should have morpho can display those otherEntity, i.e. images.
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...
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.
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.
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
Updated by ben leinfelder over 14 years ago
now packaging the mime.type in META-INF/
we can add more as needed.
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