Adding MIME Types Into the LabVIEW Real-Time Web Server Primary Software: LabVIEW Modules>>Real-Time ModulePrimary 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;MIMEtypeUsing 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/xmlOnce 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 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
