oh ok YES it is the Byte Order Marker. The point is that the layout
file that is used in the view that generated the upload form needs to
be set to 'unix' byte order marker. Usually you can choose betwene
unix, mac and dos. Use unix.

robdeman wrote:
> hello all,
>
> I'm having trouble inserting a JPEG as a blob.
> My script does some resizing and stuff and then creates a valid JPEG
> file. This is stored in a BLOB field form a controller using
> 'Model->save'.
>
> The problem: when I output the data to a file before storing it as a
> BLOB it works. The JPEG data gets corrupted during the 'save'
> operation. When I overwrite a BLOB field with a corrupt JPEG with
> another JPEG using PhpMyAdmin then the new image is not corrupt.
> So it must be cake I guess that has trouble inserting the BLOB data
> correctly. Any help here?
>
> (Yes I did look at the Wiki and the Byte Order Marker thing.. I fiddeld
> around, but nothig really helped)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to