- Posts: 5
- Thank you received: 0
Hi All
How can I add pictures in the database?
I don't have enough experiance in there.
Thank you in advance for your help.
Please Log in or Create an account to join the conversation.
Hi,
You don't have to actually add pictures to the database. What you need to do is to add an html tag to your database with defined src attribute pointing to the actual image location.
The image field in your database will than contain
<img src="/path/to/your/image/onyour/server/image_file.img" >
Please Log in or Create an account to join the conversation.
I used the following HTML in a table field to try and fix the image frame size
<img src="/path/to/your/image/onyour/server/image_file.img" height="225" width ="150" >
The width of pictures seems to be fixed at 150 px but the height varies considerably and is definitely not fixed at 225 px. Can you explain why the height is not fixed?
John
Please Log in or Create an account to join the conversation.
I don't know. Maybe your template iverrides height or something like this. Maybe you can use style property instead of height and width.
<img src="/path/to/your/image/onyour/server/image_file.img" style="width:150px;height:225px;" >
Please Log in or Create an account to join the conversation.
Hi
Thanks for the suggestion to use the style property. It worked fine.
Thanks for your help.
Best Wishes
John
Please Log in or Create an account to join the conversation.