DonP
|
| Posted: 02/04/2009, 3:51 PM |
|
Perhaps not precisely a CCS issue but I am having an error I never had
before after regenerating a page. An image fetched from a BLOB field is
now giving errors on ImageCreateFromString(). It says that the data is
not in a recognized format even though it WAS working! It shows me only
the errors and the BLOB's data as gibberish but it is not the same
gibberish I've seen before in relation to images. Although it was never
needed before, I tried following an idea on php.net in using
base64_decode() and the errors go away but the page is then completely
empty. No errors, no gibberish, just blank.
Any ideas?
Don (DonP)
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 02/04/2009, 4:04 PM |
|
Hi
If you have not created a new database or project, I would be very confused.
Maybe check the Character set for your database or DB Character set in use for your CCS project.
Let me know what you find. I would be interested in the resolution.
Have fun
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
DonP
|
| Posted: 02/04/2009, 4:26 PM |
|
As far as I know nothing has changed. Is there a character set that
might be better for a BLOB field or is it entirely based on that of the
project? Thanks.
Don (DonP)
DonP wrote:
> Perhaps not precisely a CCS issue but I am having an error I never had
> before after regenerating a page. An image fetched from a BLOB field is
> now giving errors on ImageCreateFromString(). It says that the data is
> not in a recognized format even though it WAS working! It shows me only
> the errors and the BLOB's data as gibberish but it is not the same
> gibberish I've seen before in relation to images. Although it was never
> needed before, I tried following an idea on php.net in using
> base64_decode() and the errors go away but the page is then completely
> empty. No errors, no gibberish, just blank.
>
> Any ideas?
>
> Don (DonP)
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 02/04/2009, 4:51 PM |
|
As I recall there is a character set for the database table and in the CCS project settings.
I have had to mess with this in order to get internationalization characters to work properly.
The same might be the case with your image data.
Not really sure, just a thought.
I would use base64_encode/decode, however, any time saving image data to a DB table. That might prevent issues like this in all cases.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
DonP
|
| Posted: 02/04/2009, 6:13 PM |
|
My project is and has always been UTF-8 and nothing has changed so it is
a mystery why the sudden problem after regenerating! I checked the
database settings and see something completely different for all tables
but again, it's always been that way and has worked. I tried changing
the table to UTF-8 but it seemed to make no difference. Is it necessary
to restart MySQL after making such a change?
Don (DonP)
DonP wrote:
> Perhaps not precisely a CCS issue but I am having an error I never had
> before after regenerating a page. An image fetched from a BLOB field is
> now giving errors on ImageCreateFromString(). It says that the data is
> not in a recognized format even though it WAS working! It shows me only
> the errors and the BLOB's data as gibberish but it is not the same
> gibberish I've seen before in relation to images. Although it was never
> needed before, I tried following an idea on php.net in using
> base64_decode() and the errors go away but the page is then completely
> empty. No errors, no gibberish, just blank.
>
> Any ideas?
>
> Don (DonP)
|
|
|
 |
|