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.
Category:
morpho - general
Description
Bug 4365 will give user the ability to import other entity. So we should have morpho can display those otherEntity, i.e. images.
Images and text are now being displayed correctly.
PDFs and other binary files will still show as text with crazy characters...
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.
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.
now packaging the mime.type in META-INF/
we can add more as needed.
closing this now. if we need more mime types mapped, then we can add them as needed
Original Bugzilla ID was 4366
Also available in: Atom
PDF