Get image of table cell from sqlite database in Xcode - xcode

I have a table view in my app and would like have a left-side-image for every cell. This image should come from an sqlite database. What code would I need to use for this?

you should review fmdb. check the main.m file for an example of storing and reading an image file.

Related

Rendering Oracle BLOBs in R Shiny Datatable

I am new to both BLOBs and image rendering in Shiny, but I am wondering if it is possible to render images stored as BLOBs in an Oracle table via datatables in Shiny? Unfortunately I don't have code to share, but am wondering if anyone has attempted or been successful doing something like this?
Basically, I am wanting to have a table stored in Oracle that has a product picture, and then several more columns with other information about the product. Then, I would like to be able to read that table in via R and display the full table with the images as a datatable in a Shiny application.

In Spotfire I want to display an image from the database

I have images stored in the database that I want to show in Spotfire. I've found how to display an image from a webpage but not one directly from the SQL database. Spotfire defaults to string type for the image. I tried editting it at the Info Link stage and forcing it to be a blob, but when I render it as an image I just see [..].
unfortunately Spotfire doesn't support BLOB or binary data.
what you can do is store your images on a server somewhere, then in place of the binary data in your database, store the URL to the image. you can then display it in a table as suggested in the Spotfire manual.

Oracle APEX display blob images directly in a report

I would like to know how one can display image type BLOBs uploaded as per this stack overflow question Use of BLOB type column in Oracle APEX, as images in a classic or interactive report instead of the normal download links.
I noticed that you can change the blob column attribute's Content Disposition field to inline, which then allows you to click through to another page where the image is displayed; but I want the image to display directly in the report without having to click on it.
The inline image displayed in a new page has the following url
https://apex.oracle.com/pls/apex/apex_util.get_blob?s=34564408462&a=4794&c=16789110088070077&p=2&k1=21&k2=&ck=D4QFl4Z9txsufDbmUOmKeirK4&rt=CR
which suggests that one might be able to use apex_util.get_blob. Does anyone know how this can be accomplished?
I have implemented same in classic report.
I followed this link http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#AEAPI129
This may help you to resolve your doubts

how to get rearranged columns from the database

I am working on columns drag nad drop its working fine and the new order is also saved in the database but when i again opens the page it shows the pervious order so, how cani achive this.
Thanks in advance
You can save remapColumns parameter of jqGrid and use the remapColumns method to restore the order of the columns. I recommend you to read the ansewer with the demo which show how to do this by saving the information in the localStorage. You can do the same, but save the information in the database.

Display image in NSTableView

Now can I display an image in a table view. The big thing is there will be multiple data sources and each one has a different image. I'm using pubsub to get the data.
Ex:
data source 1
image
-data
-data1
data source 2
image 1
-data 2
-data 3
You need a controller object that is set as the datasource of the table view. It is the job of that single controller to tell the table view what to display. You don't implement multiple data sources for a table view.
Your controller should aggregate the data from the various sources and display it in your desired layout by returning appropriate values from the various NSTableDataSource methods. How you do this is up to you.
Drag the image cell from IB's Library palette into the table column where you want to show images. Then, serve up those images from your data source (singular, as Rob Keniger notes).

Resources