阿神2017-04-18 10:04:17
In fact, you can store the image directly in the file system, and then just store the file path in mysql
PHP中文网2017-04-18 10:04:17
1 2 3 4 5 6 |
|
This should define a binary column, and then you just need to convert the image to binary and save it.
For details, please refer to the following:
http://stackoverflow.com/ques...
高洛峰2017-04-18 10:04:17
You can convert image files to base64 encoding and then store them in the database. See the example for details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|