CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 retrieve image from database

Print topic Send  topic

Author Message
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.......:-(
View profile  Send private message
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

View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.