0

Is there a way to get two blob files from the database to display in one view.

Example:

Image 1 Image 2
[BLOB - 88.2 KiB] [BLOB - 88.2 KiB]

This is the database table where there are two columns of images. Im trying to display it like this on my view:

-imagefile1.jpg

-imagefile2.jpg

Note that I don;t want it to be posted as an img. I want to retrieve it from the database as a blob, convert it, then post it in view as a filename that can be clicked and downloaded.

Is this possible? If so, how can I do it? If not, how can I do the alternative?

Vickel
  • 7,879
  • 6
  • 35
  • 56
  • why don't you use the database just to store the filename and the [File Uploading Class](https://codeigniter.com/userguide3/libraries/file_uploading.html) to save the images to some folder on your server. Would make things much easier... Also read [Pros and Cons storing images in a database as blob](https://stackoverflow.com/a/6314094/2275490) – Vickel Nov 13 '22 at 18:39

0 Answers0