GMImage.NewFromBase64
---------------------

Loads a picture from base64 encoded data.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [3.0](newinversion30.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.NewFromBase64"; Text ) 

**MBS**( **"GMImage.NewFromBase64";** /\* Loads a picture from base64 encoded data. \*/  
**$Text**) /\* The text to decode. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text to decode. |  |

### Result

Returns the ImageRef number on success.

### Description

Loads a picture from base64 encoded data.  
Please call [GMImage.Release](GMImageRelease.md) later to free memory for this image.  
This is useful for images you got from an email.  
Image reference numbers are starting at 18000 and counting up for each new image.  
### See also

- [GMImage.NewFromFile](GMImageNewFromFile.md)
- [GMImage.NewFromHex](GMImageNewFromHex.md)
- [GMImage.Release](GMImageRelease.md)

### Example Databases

- [GraphicsMagick/Picture Text Encoding](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Picture%20Text%20Encoding.shtml#1ScriptAnchor_)

### Blog Entries

- [GraphicsMagick in FileMaker, part 1](https://www.mbsplugins.de/archive/2022-12-01/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.2pr5](https://www.mbsplugins.de/archive/2015-06-28/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.0pr3](https://www.mbsplugins.de/archive/2012-10-19/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 11st April 2023

  
[GMImage.New](GMImageNew.md) - [GMImage.NewFromContainer](GMImageNewFromContainer.md)

[HTML Version](GMImageNewFromBase64.shtml)