Joined: 27 Aug 2018
Topic: TWebDbImage usage
Posted: 14 Nov 2019 at 2:48pm
Could you give me a simple usage example of TWebDBImageControl component? I don't know how to display the image that is stored in the DB.
1. Is it enough to set DataSource and Datafield to display a picture?
2. Is there a more extended description of BaseURL property
3. Is there any example (there is none in the supplied demos)?
Joined: 18 May 2010
|Post Options Quote Reply Posted: 14 Nov 2019 at 3:02pm|
Please note that the TWebDBImageControl component is not designed to display images stored in the DB. Instead you can specify an URL to an existing image on a webserver and display that image.
Assuming the DB field contains the full path to the image it is sufficient to set the DataSource and Datafield properties. If the DB field only contains a file name, the BaseURL property can be used to add an URL prefix.
Examples are available in the Demo/Basics/DataSet application included with the TMS WEB Core download. This demo does not contain a TWebDBImage specifically but the usage is identical to that of a TWebDBEdit for example.
A detailed description (including the BaseURL property) can be found in the PDF manual available from the product page: https://www.tmssoftware.com/site/tmswebcore.asp
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum