How to view of image/video/pdf media files from db without base64 encode through php?

     

/*Code for use of base64 encode but is there any alternative for same as i have multiple media files to show and transfer to another db upon appropriate selection mechanism say checkbox */