[TYPO3-english] Images using tt_address extension

Sergio Catalá Gil scatala at iti.upv.es
Tue Oct 21 16:09:06 CEST 2008


Hi, 

I'm using a simple script in PHP to save images from a certain folder
directly to "tt_address.image" field. In this script I use the typical
sentences to save images:

$imagesize = filesize($file);
$fileHandle = fopen($file, "r");
$fileContent = fread($fileHandle, $imagesize);
$fileContent = addslashes($fileContent);

It reads the image perfectly and it seems to save it in the database (I
save the variable $fileContent in the "image" field) but when I try to
show the tt_address image from the BE, the imagen isn't showed. Instead,
a lot of characters are shown in the field. 

Do I need something else to display it correctly? Am I doing something
wrong?

Thanks in advance, 
Sergio




More information about the TYPO3-english mailing list