Get extension and MIME type of file using MimeTypeMap

Example to get extension and MIME type of file using MimeTypeMap.

 String extension = MimeTypeMap.getFileExtensionFromUrl(fileUrl);
String mimetype = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);


0 Response to "Get extension and MIME type of file using MimeTypeMap"

Posting Komentar