PHP 如何对上传的图片进行base64编码??
//index.html
<form action="do_up.php" method="POST" enctype="multipart/form-data">
<table width="500px" height="300px">
<tr>
<td>上传文件:<input type="file" name="file"/></td>
<td><input type="submit" name="btn" value="上传"/></td>
<td></td>
</tr>
</table>
</form>
//do_up.php
在php端如何接收到上传的图片,然后进行base64编码,然后保存数据库???谢谢!!