Categories > TinyButStrong general >

Images

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Paul
Date: 2003-04-16
Time: 02:08

Images

Hello, can you use TBS to insert images into an HTML document? Thanks for any guidance!
By: Skrol29
Date: 2003-04-16
Time: 10:18

Re: Images

Hi Paul,

Yes it can. Could you be more precise about what you'd like to do, so I could give you details.

By: neville
Date: 2003-05-01
Time: 02:44

Re: Images

I too have the same query.
I would like to take my images from a database (mysql) and merge them to the template.
This SEEMS difficult, as I have tried but get a problem with it displaying my picture (jpg) as text.
I would appreciate any help. Thanks.
By: Skrol29
Date: 2003-05-05
Time: 17:27

Re: Images

Hello Neville,

Images are not part of the Html file. They are external files. The Html document only has a reference to images files (href="...").

TBS won't be able to merge a binary image source with a template because there is no such thing in Html.

What id usuaaly done is save image's path in the database, instead of the image's source. Then dynamic page can be created.
Other wise, it's a big problem and lot of performance lost.

By: neville
Date: 2003-05-06
Time: 12:58

Re: Images

Thanks for that! It makes sense to me. If I were to use the system like that and save the path in the database, how would I then use TBS to display them?
Thanks again.
Neville
By: Skrol29
Date: 2003-05-06
Time: 14:22

Re: Images

For example :

<img src="[blk1.pic_filename]" alt="[blk1.pic_title]">