diff --git a/includes/datastream.inc b/includes/datastream.inc index c6cb2780..74517d7c 100644 --- a/includes/datastream.inc +++ b/includes/datastream.inc @@ -41,10 +41,7 @@ function islandora_view_datastream(FedoraDatastream $datastream, $download = FAL } drupal_page_is_cacheable(FALSE); // Try not to load the file into PHP memory! - $file = drupal_tempnam(file_directory_temp(), 'islandora'); - $datastream->getContent($file); - readfile($file); - drupal_unlink($file); + $datastream->getContent('php://output'); exit(); }