[TriLUG] "wild" space on web page -- corrupt jpeg data

Stephen Bryant stephen at stephenbryant.net
Tue Jul 30 11:09:59 EDT 2013


Hi Brian,

The first thing I would check is whether there is a spare newline outside of the <?php tags on any of the files involved.

--
Stephen Bryant



On Jul 30, 2013, at 11:04 AM, Brian McCullough <bdmc at buadh-brath.com> wrote:

> Folks,
> 
> I have been fighting this for a while, hoping, perhaps, that the answer would come to me in a blinding flash, but, so far, nothing.
> 
> 
> I have a CakePHP 1.1 system that I am maintaining, and have a "small" problem.  I have a page that contains an IMG tag, with the source being a link into the system ( it calls a controller function that returns the content of a JPEG file ).
> 
> Unfortunately, there is a single newline appearing as the first character of the image data.  This means, of course, that the image doesn't display.
> 
> 
> I know "why" I have the problem, but I can't seem to find the cause of the failure.
> 
> I have rewritten the page a couple of times, and examined the controller function that returns the image data, and am almost certain that it isn't the culprit.
> 
> Any suggestions?
> 
> 
> Thanks,
> Brian
> 
> 
> P.S. I have tried the TriPUG mailing list, but apparently don't have
> write access there. ( The successor to TriPUG, anyway. )  I am also
> trying the CakePHP forum, but usually get my best answers here.
> 
> -- 
> This message was sent to: Stephen Bryant <stephen at stephenbryant.net>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: http://www.trilug.org/mailman/options/trilug/stephen%40stephenbryant.net
> Welcome to TriLUG: http://trilug.org/welcome

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.trilug.org/pipermail/trilug/attachments/20130730/c96ec56b/attachment.pgp>


More information about the TriLUG mailing list