> I want get imagef(jpeg) from sapdb and try next script: > > use SAP::DBTech::sapdb;
> $result = $session->sql ($stmt); > print FILE $result; > close FILE; >But test.jpg as result dont have such size as original. >Where I wrong? 1. Selecting a LONG column returns a SapDB_LongReader (http://www.sapdb.org/sapdbPerl.html#SapDB_LongReader) and not the content af the column as a string. while ($data = $result->read (1000)) { print FILE $result; } 2. You should switch to DBD::ODBC, as SAP::DBTech::sapdb is no longer supported. See http://www.sapdb.org/7.4/sap_db_program.htm about the details on how to use DBD::ODBC with SAP DB. Daniel Dittmar -- Daniel Dittmar SAP DB, SAP Labs Berlin [EMAIL PROTECTED] http://www.sapdb.org/ _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general
