Trouble Viewing Dynamically Created Images...

2008-10-27 Thread Parris

So I have a few classes that dynamically create images. One of which
works on the same server, but not in the directory that I have cake
currently installed, and the other is one I am trying to get to work
with cake php.

When I view the one that works, simply as a url... It generates the
image just fine. When i load i through img
src=url_to_php_generated_image it works fine when not using cake.
When I try to load this image in my cake environment it does not
appear at all (the src as a simple url still works though).

I became of this after messing around with all the different captcha
components in the bakery. They all work but give me the same result.
The result being that the image does not display when using img
src=url_to_php_generated_image, and when going directly to
url_to_php_generated_image will display scrambled text which seems to
me like binary? So I guess the image is being created; however, it
isn't being parsed correctly by cake some how? I am not quite sure
what is happening.

It seems others are having this problem since in all the captcha
bakery stuff people are complaining.

I did try turning off debug mode. However, that simply removed the
header errors when trying to view the image using the url. I also used
a blank layout to try and view the image without the rest of the site,
but that had no effect either

I am stuck...

Any help would be much appreciated!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Trouble Viewing Dynamically Created Images...

2008-10-27 Thread Parris

Just a side note... I am using RC2
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Trouble Viewing Dynamically Created Images...

2008-10-27 Thread Parris

Ok thanks for the non-replies everyone! I just solved it!

Everyone who has this issue in the future, please check for any extra
spaces or returns at the end of files!!!

This is definitely your culprit if you see that there is an extra
space randomly at the beginning of your data output!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---