Ciao, ho una tabella oracle, con il campo UPFILE di tipo blob. Sto cercando di fare uno script per il download dei file nel campo blob ed so questo script:
ma mi da questo errore:codice:<? $id=$_REQUEST['ID_doc']; $query = "SELECT \"TIPO\", \"TITOLO\", \"DIMENSIONE\", \"UPFILE\" FROM \"DOCUMENTI\" WHERE ID = ".$id; $stmt = $oracle->parseAndFetch($query); if (Error::isError($stmt)) { $stmt->throwAsFatal(); } $result = $stmt[0]; // If any text (or whitespace!) is printed before this header is sent, // the text won't be displayed and the PDF won't be loaded correctly. // Comment out this line to see the text and debug such a problem. header("Content-Type: ".$result['TIPO']); // http://www.php.net/header has some interesting comments on // sending a "Content-Disposition" header // It will force IE to give a "save" window instead of opening it. header("Content-Disposition: attachment; filename=".$result['TITOLO']); header("Content-Length: " . $result['DIMENSIONE']); echo $result['UPFILE']->load(); ?>
Call to a member function on a non-object in /srv/www/sorgenti/modules/documents/download.php on line 23
la riga 23 è quella evidenziata.
Soluzioni? Thanks.

Rispondi quotando
