Forums / Developer / How to get Binary File Data?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to get Binary File Data?

Author Message

Willie Seabrook

Friday 19 September 2003 3:43:09 am

I need to load a text file inside a workflow that has previously been loaded into ez.

I am trying a number of things including:

$processParameters = $process->attribute( 'parameter_list' );
$objectID = $processParameters['object_id'];
$object =& eZContentObject::fetch( $objectID );
$currentVersion =& $object->currentVersion();
$dataMap = $currentVersion->dataMap();
$fileAttr = $dataMap['list_data'];
$binaryFile = $fileAttr->attribute('filepath');

How on earth do we find our way round objects when nothing is hard coded? Whats the best methods?

Regards,
Willie