Hi,
I do not understand, why this does not work for me:
$strBinary = file_get_conten ts('test.jpg');
$resHandle = imagecreatefrom string($strBina ry);
ob_start();
imagegd2($resHa ndle);
$strBinary2 = ob_get_clean();
imagecreatefrom string($strBina ry2);
I get
for the second call of imagecreatefrom string
As check that my php is set up correctly i tried that and it worked:
$strBinary = file_get_conten ts('test.jpg');
$resHandle = imagecreatefrom string($strBina ry);
imagegd2($resHa ndle, 'test.gd2');
$strBinary2 = file_get_conten ts('test.gd2');
imagecreatefrom string($strBina ry2);
Can anybody tell me where the difference is and why the first version
does not work?
Thanks,
- Rainer Collet
I do not understand, why this does not work for me:
$strBinary = file_get_conten ts('test.jpg');
$resHandle = imagecreatefrom string($strBina ry);
ob_start();
imagegd2($resHa ndle);
$strBinary2 = ob_get_clean();
imagecreatefrom string($strBina ry2);
I get
>function.image createfromstrin g: Passed data is not in 'GD2' format
As check that my php is set up correctly i tried that and it worked:
$strBinary = file_get_conten ts('test.jpg');
$resHandle = imagecreatefrom string($strBina ry);
imagegd2($resHa ndle, 'test.gd2');
$strBinary2 = file_get_conten ts('test.gd2');
imagecreatefrom string($strBina ry2);
Can anybody tell me where the difference is and why the first version
does not work?
Thanks,
- Rainer Collet