[TYPO3-english] Images using tt_address extension
Peter Klein
peter at umloud.dk
Tue Oct 21 17:12:08 CEST 2008
Hi Sergio.
The image field of tt_address does NOT contain the image data, but just the
name of the image file.
The imagefile itself should be located in the /uploads/tt_address/ folder.
--
Peter Klein
"Sergio Catalá Gil" <scatala at iti.upv.es> wrote in message
news:mailman.48469.1224598067.4573.typo3-english at lists.netfielders.de...
> 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