---
schema_version: "1"
id: 40f1052a8a644c775dd4e71be2555c51b6870febcde805ed196df9e065bb1eeb
title: Mime (dw::module::Mime)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-mime.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-mime
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e37418f5216fe93dde22f7cf27a808a347db85b8cc4465f1238d9162aabcb678
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# Mime (dw::module::Mime)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This module contains helper functions for working with MIME type.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::module::Mime` to the header of your DataWeave script.

_Introduced in DataWeave version 2.7.0._

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-mime-functions-fromstring">fromString</a></p></td><td><p>Transforms a MIME type string value representation to a <code>MimeType</code>.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-mime-functions-ishandledby">isHandledBy</a></p></td><td><p>Returns <code>true</code> if the given <code>MimeType</code> value is handled by the base <code>MimeType</code> value.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-mime-functions-tostring">toString</a></p></td><td><p>Transforms a <code>MimeType</code> value to a string representation.</p></td></tr></tbody></table>

## Types

- [Mime Types](https://docs.mulesoft.com/dataweave/2.11/dw-mime-types)
