The generated function
BinaryData::getNamedResourceOriginalFilename is not working correctly as it compares the
const char* pointers instead of doing a string comparison. If you are not passing in a string literal but you pass in a runtime computed string it’s failing badly.
I’ve opened a corresponding issue in github too https://github.com/WeAreROLI/JUCE/issues/691