I'm wondering how i can upload images into a database and display an uploaded image at the same time. For example when the upload button is clicked, the image is inserted into the database and displayed in the frame. (It doesn't matter whether the page reloads or not). I have studied several tutorials but all handle uploading and displaying images seperately. How can i achieve this? Thanks
Jump to Post
DB storage of images is a bit messy. As Venter suggests - load to folder and store the path to the DB. You can then display the image via simple <img src="..." />
The blob alternative is sanitize... get contents... store... get image id and use to pass to img …
All 2 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.