PhotoPicker.TotalBytes
----------------------

Queries the number of bytes in total.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PhotoPicker](component_PhotoPicker.md) | [12.5](newinversion125.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "PhotoPicker.TotalBytes" ) ### Parameters

none

### Result

Returns number of bytes or error.

### Description

Queries the number of bytes in total.  
### Examples

A loop waiting for downloads to finish:

 Pause/Resume Script \[ Duration (seconds): ,5 \]   
Loop  
 Set Variable \[ $BytesLoaded ; Value: MBS ("[PhotoPicker.BytesLoaded](PhotoPickerBytesLoaded.md)") \]   
 Set Variable \[ $TotalBytes ; Value: MBS ("PhotoPicker.TotalBytes") \]   
 Set Variable \[ $ImageCount ; Value: MBS ("[PhotoPicker.ImageCount](PhotoPickerImageCount.md)") \]   
 #   
 If \[ MBS ("[PhotoPicker.IsLoading](PhotoPickerIsLoading.md)") \]   
 Pause/Resume Script \[ Duration (seconds): ,1 \]   
 Else  
 Exit Loop If \[ 1 \]   
 End If  
End Loop  
### See also

- [PhotoPicker.BytesLoaded](PhotoPickerBytesLoaded.md)
- [PhotoPicker.ImageCount](PhotoPickerImageCount.md)
- [PhotoPicker.IsLoading](PhotoPickerIsLoading.md)

### Example Databases

- [iOS/Examples/iOS Photo Picker](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/iOS%20Photo%20Picker.shtml#5ScriptAnchor_)

### Blog Entries

- [PhotoPicker for iOS with FileMaker iOS SDK](https://www.mbsplugins.de/archive/2022-11-09/PhotoPicker_for_iOS_with_FileM/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 28th September 2022 , last changed 24th March 2023

  
[PhotoPicker.SetSize](PhotoPickerSetSize.md) - [Platform](Platform.md)

[HTML Version](PhotoPickerTotalBytes.shtml)