MySQL Forums
Forum List  »  PHP

Re: Tool to Update .ibd files
Posted by: Peter Brawley
Date: July 01, 2019 12:05PM

Given jpg filename $jpgfname and table tbl with auto_inc column id and blob col img ...

$img = file_get_contents( $jpgfname );
$qry = "insert into tbl set img = '$img'";

Options: ReplyQuote

Written By
Re: Tool to Update .ibd files
July 01, 2019 12:05PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.