Jason Moehlman
2007-04-11 00:56:33 UTC
Hello,
I am experiencing a problem with storing bytea data only on Windows.
An older app that uses a canvas to accept a JPEG image and store it
in a bytea column no longer returns the same data it is submitted on
Windows.
I have traced it with the debugger and the proper data stream is sent
into the pgescapebytea routine, but when retrieved and unescaped the
first 2 words were "FFD8 FFC0" come back as "9FD8 9FC0" and are
rejected by the JPEG routine. I am not sure about the 2nd half of
the words, but I am sure the FF->9F is accurate, I did not write it
down.
The weirdest part is this only happens on WIndows, not Mac OS X or
Linux, those platforms both perform as expected and display the image
properly.
I have also verified that the same code with older v1 pgSQL4RB does
not have this problem and works properly on Windows also.
Anyone else experience this?
This is a critical bug for me and prevents shipping products with v2.
Jason
I am experiencing a problem with storing bytea data only on Windows.
An older app that uses a canvas to accept a JPEG image and store it
in a bytea column no longer returns the same data it is submitted on
Windows.
I have traced it with the debugger and the proper data stream is sent
into the pgescapebytea routine, but when retrieved and unescaped the
first 2 words were "FFD8 FFC0" come back as "9FD8 9FC0" and are
rejected by the JPEG routine. I am not sure about the 2nd half of
the words, but I am sure the FF->9F is accurate, I did not write it
down.
The weirdest part is this only happens on WIndows, not Mac OS X or
Linux, those platforms both perform as expected and display the image
properly.
I have also verified that the same code with older v1 pgSQL4RB does
not have this problem and works properly on Windows also.
Anyone else experience this?
This is a critical bug for me and prevents shipping products with v2.
Jason