Blob fields in TVirtualTable (in iOS)
Posted: Thu 14 Jun 2018 18:42
I've developed an application for the iPad/iPhone that connects to a PostgreSQL database and displays multiple fields in a dbGrid.
For this I used the Unidac drivers and the application is working perfectly, correctly displaying the images, texts and getting some binary files from the database.
After the application was ready (and working correctly) I decided to create a version that gets the data from TStreams and for that I used several TVirtualTables.
After I finished, I realized that the images no longer displayed correctly in the dbGrid (they go blank). The binary files also are not read correctly but these issues only occur on iOS.
The same source code compiled for W32, W64, and MacOS works perfectly.
Can someone help me figure out where the problem is?
I created a example project for you to see this problem. Note that when compiled for Windows or MacOS the image is displayed but on iOS it does not appear.
Use this link to download example project:
https://1drv.ms/u/s!Al-1RWjYXpnaj8YsTzHG6ekcN8LDuw
I´m using:
Delphi 10.2 Update 3 (25.0.29899.2631)
Patch for iOS 10.3
Unidac 7.2.7
For this I used the Unidac drivers and the application is working perfectly, correctly displaying the images, texts and getting some binary files from the database.
After the application was ready (and working correctly) I decided to create a version that gets the data from TStreams and for that I used several TVirtualTables.
After I finished, I realized that the images no longer displayed correctly in the dbGrid (they go blank). The binary files also are not read correctly but these issues only occur on iOS.
The same source code compiled for W32, W64, and MacOS works perfectly.
Can someone help me figure out where the problem is?
I created a example project for you to see this problem. Note that when compiled for Windows or MacOS the image is displayed but on iOS it does not appear.
Use this link to download example project:
https://1drv.ms/u/s!Al-1RWjYXpnaj8YsTzHG6ekcN8LDuw
I´m using:
Delphi 10.2 Update 3 (25.0.29899.2631)
Patch for iOS 10.3
Unidac 7.2.7