I'm going to take a wild guess here and claim PEBCAK.
Name:
Anonymous2007-08-23 14:39 ID:iDy72R64
>>3
There must be some way though, and I can't really do much about changing the table's definition since I didn't install this and our software would fail hard since this column is used to store other data than just strings.
Name:
Anonymous2007-08-23 14:58 ID:9KHi3E4g
More information please.
Name:
Anonymous2007-08-23 15:30 ID:zgbfHWd0
BLOBZ are for binariz, one does not simply read into BLOB.
Name:
Anonymous2007-08-23 17:16 ID:iDy72R64
>>6
Well, I understand that part, but how does one go from ascii to binary? I found a user function on the PHP site called str2bin(), but it's output of 1s and 0s doesn't transmit as binary data so the column still comes up empty.
$res = mysql_query( $query );
/*
The above returns TRUE (success), however the document_content becomes 0 instead of the XML. How do I string-to-binary?
*/
?>
Name:
Anonymous2007-08-23 17:23 ID:9KHi3E4g
Could it be that you're using double quotes around your string rather than single quotes. Maybe this would work?
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTSFUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
v
v
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTSFUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTSFUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
FUCK OFF TAKE YOUR FAIL TECHNOLOGIES WITH YOU FAGGOTS
>>8
Extreme quoting, but no - the content I'm sending looks like this:
<someXmlTag name=\'foo\' param1=\'bar\'> and I have it actually like this anyways:
$query .= 'set document_content="' . $newXML . '" and ';
I've tried the pack() command to send it as unsigned char, (pack('c', $newXML)), but no luck. It uploads as binary data to the blob, but the data doesn't translate back properly and so it fails, though I should likely unpack, no? Even so, most of the pre-existing data isn't pack'd and looks like straight strings in the DB table, but then updating with strings fails.