|
When coding in java, How to get the corresponding file extension if the mimeType of the file is known?
Started by shrimpy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, Apache Tomcat has ....
Each web server seems to maintain its own listmake a look-up table with the mime-type as the key and the extension as the value.
There is no official list of file extension to mime type mappings.
|
|
How do i get the location of the file that i used to open my programs with?
Example: if i create a new extention ".xyz" say and i tell windows that i want to open the file type .xyz with myapplication, then it starts my aplication. Great, but how does...
Started by Arthur on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
File extension databases:
http://filext.com/ http://www.cybertechhelp.com/fileextensions/ http://extensions.pndesign.cz/ And of course: http://www.google.com/search?q=file+extension+database EDIT handlers for unknown file....
|
|
Hi,
There are several approaches to fetch the description and default icon for a given extension (no full path), e.g for "*.doc" I want to get "Microsoft Word Document" and the related icon, which do you think will be the fastest one of the following:...
Started by Edwin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Moreove, see How to use the SHGetFileInfo Dictionary(Of String, ... .
In addition, reliably retrieving file information for all file types is not as simple to improve performance as shown below with the file's type name.
The registry.
|
Ask your Facebook Friends
|
Hi
We are developing an eclipse plugin and we have an extension like say, ".xyz" but it actually contains java code. JavaCore.createCompilationUnitFrom() accepts only files with extension ".java". JavaCore has JAVA_SOURCE_CONTENT_TYPE which returns the...
Started by Sathya on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
When you than open the specific file, the editor is used you ....
Editor and implement the extension point "org.eclipse.ui.editors".Add the file extension to the editor extension preference entry "extensions".
|
|
Is there a standard file extension for MSBuild files that are not project files but instead more complex build scripts?
I was thinking .msbuild.proj to avoid confusion with other .proj files (which I am aware are actually MSBuild files).
Started by Josh Kodroff on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
XXproj .targets files are those which is meant....
So the main build script would be something like:
build.proj main.proj buildAll.proj The closest there is to a standard is as follows:
.proj .targets .
We just use .build
.proj is the most popular.
|
|
I'm moving a PHP app to my IIS 7 web server.
A lot of the files in the application are php files, but don't have the php extension (in fact they have no file extension). This works fine on the old Apache hosting, but I can't get it to work on IIS 7.
I...
Started by Richard on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
If there are alot of them you could perhaps use a find and replace utility to add file extensions..
files, however.
The standard way to do this is to add a mime type and handler for * .
On extension.
|
|
I have a few directories and sub-directories containing files with no file extension. I want to add .jpg to all the files contained within these directories. I have seen bash scripts for changing the file extension but not for just adding one. It also...
Started by seengee on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Note that this....
This will find files without extension for each file.
If you want to execute with spaces (and even newlines...) are properly handled .
Separated file names,
If you do, the names will need to be processed a bit.
|
|
One of my user's Outlook create files with the ".com" extension when they view an e-mail that contains JPG. There's no detectable virus or trojan on this computer. However, Comodo is complaining about ".com" files being created automatically. Is there...
Answer Snippets (Read the full thread at serverfault):
Detected.
If viewing a JPEG results in a '.com' file being created, it's a virus.
|
|
I am looking for a simple way to get a mime type where the file extension is incorrect or not given, something similar to this question only in .Net.
Started by rsg on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
So, read the first (up to) 256 bytes from the file and pass.
Usually, only the first 256 bytes of data are significant .
Supplied MIME type headers, file extension, and/or the data itself.
|
|
In my application I use a SaveFileDialog to pop up a Save As window. I have restricted in the file type section the file to be saved as .dat with the following code.
sfdialog.Filter = "Data Files (*.dat*)|*.dat*";
What I want to know how to do is make...
Started by novacara on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For example:
sfdialog.DefaultExt = "dat"; sfdialog.AddExtension = True;.
SaveFileDialog dlg = new SaveFileDialog(); dlg.DefaultExt = "dat"; dlg.AddExtension = true;
The AddExtension and DefaultExt properties .
|