Wednesday 29 October 2014

How to save image in MySQL database ?


How to save image in MySQL database ?

(1) Read the image
(2) Encode the image data.
(3) Make field with Blob data type
(4) Save binary data in DB

Display : Select image and decode the data.

No comments: