Hi,
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
dhani09
3
Newbie Poster
Recommended Answers
Jump to PostDB 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
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.