GetMediaTypeAndBlobFormat method (WinStudio scripts)

Applies to

Document (file) operations

Description

Takes a file extension as an argument and returns both the media type and the BLOB format associated with that file extension. The two values are separated by a pipe symbol (|).

For example, the file extension "jpg" returns "image/jpeg|jpeg".

Syntax

GetMediaTypeAndBlobFormat( string extension, out string errorMessage )

where:

  • extension is the file extension.
  • errorMessage is the error message to be returned if the file extension is not found.