Binary Data to ifstream object

Hey everyone,

Is there a way to load a file from my plugin’s BinaryData into an std::ifstream object either directly or through JUCE’s File class somehow? Been struggling with this for a good few hours now.

Thanks in advance :slightly_smiling_face:

Hey, ifstream is for file i/o, but BinaryData just holds blobs of memory and provides a pointer to those plus their size. If you absolutely must use stl, I’m sure there is some stream class that operates on memory. I find the juce classes more convenient to use and combine, though.

1 Like