当前位置:数据库 > SQLite >>

关于php sqlite中插入base64提示too much data for one table row

$img = base64_encode(file_get_contents("http://i-mm.tk/20686554.png")); $db = sqlite_open("images.db"); $sql = "insert into images (Image_id,Image_Data,Image_m,Image_s) values ( '111',null,null,'$img')"; $result = sqlite_query($db,$sql); =========== $db = sqlite_open("images.db"); $sql = "create table images (id INTEGER PRIMARY KEY,Image_id text,Image_Data text,Image_m text,Image_s text)"; $result = sqlite_query($db,$sql); ======= 类型是text 想和这没关系的吧.
补充:...好吧  用PDO成功写入了
追问:=,=
换成BLOB也不成...........
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,