Islandora/islandora_ocr — pull request #21 by adam-vessey (2013-05-02 14:16:26+00:00)
Title: Use drupal_realpath(), to help ensure that the ftruncate() will work.

Looks like the "temporary://" stream wrapper that Drupal includes does
not support ftruncate()... Resolving the URI to a file works, though.