Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Adding MIME Types Into the LabVIEW Real-Time Web Server

Primary Software: LabVIEW Modules>>Real-Time Module
Primary Software Version: 5.0
Primary Software Fixed Version: N/A
Secondary Software: Vision Assistant

Problem:
I would like for the Real-Time web server to understand some additional MIME types, for example, XML files. How can I do this?

Solution:
The MIME types the Web Server uses for various file extensions are located in the ni-rt.ini file. This file is found in the root directory of any RT Device and can be edited with any text editor (like Notepad). Scrolling through this file you will find the token "WebServer.MimeTypes=" Following this ini token are the necessary parameters in the form:

FileExtension;MIMEtype

Using the same format to add the new file extension with the new valid MIME Type. For example, for XML you would add the parameter

xml;application/xml

Once you have added the new entry save the file and replace the existing one on the RT system.

Related Links:
Wikipedia: MIME types
LabVIEW Help: Viewing and Controlling Front Panels Remotely

Attachments:





Report Date: 10/19/2006
Last Updated: 01/25/2007
Document ID: 42I81QXJ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit