ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Jul 10, 2007, 6:11:42 PM (15 years ago)
Author:
ToshihiroK
Message:

postgres対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/prj/postgres/2_8_1/webapp/lib/db/file.php

    r2659 r3402  
    5959    $data = array(
    6060        'filename'   => $filename,
    61         'bin'        => $bin,
     61        'bin'        => base64_encode($bin),
    6262        'original_filename' => $original_filename,
    6363        'r_datetime' => db_now(),
     
    7676    $sql = 'SELECT * FROM c_file WHERE filename = ?';
    7777    $params = array($filename);
    78     return db_get_row($sql, $params);
     78    $lst = db_get_row($sql, $params);
     79    $lst['bin'] = base64_decode($lst['bin']);
     80    return $lst;
    7981}
    8082
Note: See TracChangeset for help on using the changeset viewer.