WindowsML.BindImageFile
-----------------------

Binds values to an input feature.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsML](component_WindowsML.md) | [10.5](newinversion105.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WindowsML.BindImageFile"; WinMLRef; Name; Path ) 

**MBS**( **"WindowsML.BindImageFile";** /\* Binds values to an input feature. \*/  
**$WinMLRef**; /\* The reference number to the model.e.g. $Model \*/   
**$Name**; /\* The name of the input feature. \*/   
**$Path**) /\* The image file path.e.g. "C:\\test\\test.png" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WinMLRef | The reference number to the model. | $Model |
| Name | The name of the input feature. |  |
| Path | The image file path. | "C:\\test\\test.png" |

### Result

Returns OK or error.

### Description

Binds values to an input feature.  
### Examples

Bind an image:

 Set Variable \[ $r ; Value: MBS ( "WindowsML.BindImageFile"; $$WinMLRef ; "data\_0"; WindowsML::Image File Path) \]   
If \[ MBS ("ISError") \]   
 Show Custom Dialog \[ "Failed to set image" ; $r \]   
 Exit Script \[ Text Result: $r \]   
End If  
### See also

- [IsError](IsError.md)

### Example Databases

- [Win Only/WindowsML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WindowsML.shtml#5ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 10.5](https://www.mbsplugins.de/archive/2020-11-23/New_in_MBS_FileMaker_Plugin_10/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th September 2020 , last changed 27th September 2020

  
[WindowsML.BindFloat16](WindowsMLBindFloat16.md) - [WindowsML.BindInt16](WindowsMLBindInt16.md)

[HTML Version](WindowsMLBindImageFile.shtml)