当前位置:编程问答 > 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 © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,