aziela
Posts: 12
|
| Posted: 03/04/2009, 5:41 PM |
|
Hello friend...
How to retrieve the image from database??
I really need your help...
I very appreciate for those who can help me...
Please somebody help me.......
|
 |
 |
joejac
Posts: 242
|
| Posted: 03/04/2009, 7:57 PM |
|
Hello aziela,
It depends on how you store the images.
1.- To store: I recommend to store the images in an image directory and the relative paths in a varchar field of a database table. To store use Toolbox-Form-TextBox in your maintenance page.
2.- To retrieve: In your list page, use Toolbox-Form-Image
2.1 In the Properties-Data of this image control you have:
Name: YourControlName
Attributes: leave it blank
Visible: Yes
Control Source Type: BDColumn
Control Source: your_table_url_image_field
Data Type: Text
leave the rest blank
This should work.
3.- Images in DB: If you try to store the image as a blob field in your database, that is another story, I would not recommend that. Any way that should require more manual code, I can not help with that, I am not an expert. I can point you to an article on how to do that in general terms, then you have to apply it to CCS4:
http://www.php-mysql-tutorial.com/wikis/mysql-tutorials...l-database.aspx
Other reference from CCS forums:
http://forums.codecharge.com/posts.php?post_id=101527
Best regards
joejac
|
 |
 |
Gena
Posts: 591
|
| Posted: 03/04/2009, 11:06 PM |
|
To put image to blob check this topic http://forums.codecharge.com/posts.php?post_id=93774&s_keyword=image
to show image from blob http://forums.codecharge.com/posts.php?post_id=98123&s_keyword=image
_________________
Gena |
 |
 |
|