Saving LZW encoded data into a mySQL database -
i send zipped data, done lzw compression @ client side js, server. problem data becomes corrupted after saving database sql.
so question is, collation should use, accomplish that? (my current 1 latin1-default collasion)
i checked if problem arrieses during data transferring client server , vice versa sending encoded data http-server , sending(php-echo) immeadiatly without processing it. decode lzw properly. should problem database.
more information schema: have single table 3 cols. "data" type of "blob". (i tried text). user_id int , type varchar.
this how save data:
insert svg.saved_data (user_id, data, type) values ('".$user_id."', '".$data."', '".$type."');
i don't know platform is, link below gives general recipe in php. has example should need.
Comments
Post a Comment