---
name: "Mime.mimeDecode"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Mime.mimeDecode"
---

# Mime.mimeDecode(3kaya)

Decode a Mime-encoded file

## NAME

Mime::mimeDecode - Decode a Mime-encoded file

## SYNOPSIS

**\[Mime\] mimeDecode(** *Char() nextchar, Bool() finalchar, Int maxlen, String boundary, String tmppath=""* **)**

## ARGUMENTS

**nextchar** A function to return the next binary character from the data source

**maxlen** The maximum amount of data to read from the file handle

**boundary** The MIME boundary string

**tmppath** The path to store **MimeFile**  temporary files. Defaults to the current directory if unspecified.

## DESCRIPTION

Decodes a Mime-encoded file. This function is mainly a utility function for **WebCommon.initWebApp (3kaya)** and has little general use.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.
