public String getMimeType() {
switch (blip.getRecordId()) {
case EscherMetafileBlip.RECORD_ID_WMF:
- return "application/x-wmf";
+ return "image/x-wmf";
case EscherMetafileBlip.RECORD_ID_EMF:
- return "application/x-emf";
+ return "image/x-emf";
case EscherMetafileBlip.RECORD_ID_PICT:
return "image/x-pict";
case EscherBitmapBlip.RECORD_ID_PNG:
return "image/tiff";
}
if("wmf".equals(extension)) {
- return "application/x-wmf";
+ return "image/x-wmf";
}
if("emf".equals(extension)) {
- return "application/x-emf";
+ return "image/x-emf";
}
return "image/unknown";
}
assertEquals("png", pics.get(4).suggestFileExtension());
assertEquals("image/png", pics.get(4).getMimeType());
assertEquals("wmf", pics.get(5).suggestFileExtension());
- assertEquals("application/x-wmf", pics.get(5).getMimeType());
+ assertEquals("image/x-wmf", pics.get(5).getMimeType());
assertEquals("jpg", pics.get(6).suggestFileExtension());
assertEquals("image/jpeg", pics.get(6).getMimeType());
}