This factory method requires a 2nd parameter, 'wb' should be okay.
[core.git] / inc / classes / main / file_directories / io_stream / class_FileIoStream.php
index 599bc9f..14f7190 100644 (file)
@@ -81,7 +81,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                for ($idx = 0; $idx < 5; $idx++) {
                        // Get a file output pointer
                        try {
-                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName));
+                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName, 'wb'));
                        } catch (FileIoException $e) {
                                // Create missing directory
                                $dirName = dirname($fileName);