This factory method requires a 2nd parameter, 'wb' should be okay.
authorRoland Häder <haeder@hmmdeutschland.de>
Thu, 22 May 2014 08:18:11 +0000 (10:18 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Thu, 22 May 2014 08:18:11 +0000 (10:18 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
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);