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.

https://stackoverflow.com/questions/17/binary-data-in-mysql


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -