I am planning to do image upload . Which method will secure & Performance consideration??
Whether we will upload the files in the server, and store the name in db or
Upload the image in db itself..
Second thing , Whether compressing the file before upload will be good in performance for both cases (server upload , db upload).