following code is written by R language function : save html file into database
html_binary <- paste(readBin("EventChart3.html", what="raw", n=1e6), 
collapse='')
sql<-paste0("INSERT INTO test (`att`) VALUES ('",html_binary,"')")
dbSendQuery(connect,sql)
following code is written by PHP language function : show the html file
$sql=sprintf("select * from test where id=37"); 
$result=mysql_query($sql);      
$row=mysql_fetch_assoc($result)  ;
print $row['id']."</br>";
header("content-type:text/html");     
echo $row['att'];
table only have two attribute 1. id : autoincrement ,int 2. att : save binary file , BLOB
my php show a lot of binary code, I don't know how to solve it. please give me help,thanks all