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

# 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.12/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.12/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.12/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.12/dw-mime-types)
