CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 $db_images->ToSQL($str_description,ccsText)

Print topic Send  topic

Author Message
feha
Posted: 09/05/2003, 3:43 PM

I do have a problem ...
I'm doing an application to upload images in to MySQL with in CCS2.1

The problem is I can' put the BLOB format in to database thru CCS 2.1 ?

.$db_images->ToSQL($data,???????) . ","
.$db_images->ToSQL($str_description,ccsText) .","


$db_images->ToSQL($data,ccsBlob) doesn't work ?
Is there other way doing it by respecting CCS2.1 ToSQL function ?


regards
feha
[www.vision.to]
DaveRexel
Posted: 09/06/2003, 3:16 PM

Hello Feha

I cannot find an attribute ccsBlob in the documentation for CCS v2.1.1.20 and as the image is binary data you could skip the ToSQL function and still get your image-data stored in DB.
--------
ToSQL Method : The data type to which the value will be formatted. You can use any one of the predefined constants: ccsDate, ccsBoolean, ccsInteger, ccsFloat, ccsText, ccsMemo
---------

Please correct me if I'm wrong
Dave
feha
Posted: 09/06/2003, 6:00 PM

Hi Dave

The problem is If I don't use ToSQL it stores as a TEXT not a binary.
After that I can't create image from DB ...

I didn't had problems with CC it works well ...

If I skeep the ToSQL syntax of CCS I can do it but I wanted the code to stay with in CCS project page ...
(there is possible to make own function in myfunctions.php (my own file ...
and call it when i want to store images ... but I want to update a product record than ?!)
DaveRexel
Posted: 09/07/2003, 2:05 AM

::
Hi Feha

This tutorial should help you
http://www.phpbuilder.com/columns/florian19991014.php3

It should be easy to adapt the short scripts to CCS.

Greetings
Dave
feha
Posted: 09/07/2003, 6:45 AM

Dave thank You for the tops.
It is OK.
I have developed in CodeCharge last year very nice modules that works great.
http://www.vision.to/index.php?page_id=14
They can sore images and all file types.

The problem still is within CCS ...

regards
feha
[www.vision.to]
feha
Posted: 09/07/2003, 6:48 AM

sorry instead of "Tops" I meant TIPS ... :-)

   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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