I have LONGBLOB field in a database that I upload images to. I set up everything as in the (Tutorial - File Upload to Database).
The view tag of this field is (Image)
The problem I am having is:
-if the file uploaded is (.PNG) it gets rendered as an image (or thumbnail) in all the pages (Add/List/View/Edit)
-if the file uploaded is (.JPG) or (.JPEG) it Does not get rendered as an image (or thumbnail) in (List/View) pages, it will only show a hyperlink and clicking it will download the image rather than viewing it, but will show the image thumbnail in the (Add/Edit) pages.
Why is that happening? how can I make jpg/jpeg images work like png?