Mime Type Detection Utility 1.1.2 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Mime Type Detection Utility 1.1.2 (Default branch)
# 1  
Old 01-27-2009
Mime Type Detection Utility 1.1.2 (Default branch)

Mime Type Detection Utility is a Java (1.4 or higher) utility library that detects the MIME types of files and streams. It uses file extension mappings and a magic.mime rules file. License: The Apache License 2.0 Changes:
All known bugs were fixed. MIME type detection of Java streams was implemented The API was cleaned up and many utility methods were added. Significant amounts of JavaDoc were added to the public API. A README.txt file explaining MIME type mapping was included. Many more extension mappings were added. Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

MIME type for sending gzip file as attachment in email

Hello, I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt. mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file file name is ... (1 Reply)
Discussion started by: tushar.modgil
1 Replies

2. Shell Programming and Scripting

MIME Type detection for Net::SMTP

I've spent a good two weeks on trying to figure out a proper way to get the mime type of a file. The "file" command on the Sparc machine I'm working on is an older version and does not support the --mime flag. It outputs things like: somefile.pdf: Adobe Portable Document Format (PDF) v1.5 ... (3 Replies)
Discussion started by: mrwatkin
3 Replies

3. Shell Programming and Scripting

Retrieving File's Mime-type

Alright, so I am trying to use perl (or any other shell scripting language, awk/sed/bash for instance), to retrieve the mime-type of a file. I want to keep it in one file, and most of the modules that are on cpan that check for mime types (Magic), aren't installed on these boxes. Anyone have... (2 Replies)
Discussion started by: Rhije
2 Replies

4. UNIX for Dummies Questions & Answers

Lynx - Downloading - extension handling - changing mime type?

Using Lynx, when I try to download a .rar, it confirms I want to download and its got it as an appication/rar file. However, split archives that end in .r## (.r00, .r01 ...) are not recognized as an appication/rar file and it reads the file like a .txt or .html. How can I fix this? Thanks! (2 Replies)
Discussion started by: yitzle
2 Replies

5. UNIX for Advanced & Expert Users

How to Set Mime type to mailx

I have a problem while sending attachement , it is displying Content into body of mail (Junk Data) instead of attachment (zip format) in Linux, same code is working in Sun Solaris.. I have read query in this site , need to set MIME type to mailx componment. Please help me how to set MIME type..... (1 Reply)
Discussion started by: suneel
1 Replies
Login or Register to Ask a Question
asadmin-create-mime(1AS)					   User Commands					  asadmin-create-mime(1AS)

NAME
create-mime - adds the MIME type SYNOPSIS
create-mime --user admin_user[--password admin_password][--host localhost] [--port 4848][--passwordfile filename][--secure|-s][--instance instance_name] --mimefile filename mime_ID Adds the MIME type associated with the named server instance. The server determines the MIME type of a requested resource by invoking the type-by-extension directive in the ObjectType section of the obj.conf file. The type-by-extension function does not work if no MIME element has been defined in the server element. OPTIONS
--user administrative user associated for the instance. --password administrative password corresponding to the administrative user. --host host name of the machine hosting the administrative instance. --port administrative port number associated with the administrative host. --passwordfile file containing passwords appropriate for the command (e.g., administrative instance). --secure if true, uses SSL/TLS to communicate with the administrative instance. --instance name of the instance. --mimefile name of a MIME types file. OPERANDS
mime_id internal name for the MIME types listing. It is used in a virtual-server element to define the MIME types used by the virtual server. Example 1: Using create-mime asadmin> create-mime --user admin --password adminadmin --host fuyako --port 7070 --instance server1 --mimefile mime.types sampleMIME Created Mime with id = sampleMIME Where: sampleMIME is the name of the MIME created. EXIT STATUS
0 command executed successfully 1 error in executing the command INTERFACE EQUIVALENT
HTTP Server node, MIME Type Files page asadmin-delete-mime(1AS), asadmin-list-mimes(1AS) J2EE 1.4 SDK March 2004 asadmin-create-mime(1AS)