Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TWebDbImage usage

 Post Reply Post Reply
Author
Dino Gomezel View Drop Down
Member
Member
Avatar

Joined: 27 Aug 2018
Posts: 89
Post Options Post Options   Quote Dino Gomezel Quote  Post ReplyReply Direct Link To This Post Topic: TWebDbImage usage
    Posted: 14 Nov 2019 at 2:48pm
Hi!

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)?


Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2163
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 14 Nov 2019 at 3:02pm
Hi,

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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down