how to avoid strip character when store marshal object into table?

I marshal a Model object and store into a table column(text type), it
always strip the size into 127. so I can not return a marshal object to
model object. how can I make this work?

I marshal a Model object and store into a table column(text type), it
always strip the size into 127. so I can not return a marshal object to
model object. how can I make this work?

you should probably be using a blob column for marshaled objects - you
don't want the database doing character set conversions on it or
anything like that

Fred

the text column is 2GB- you must not be doing it write

show me a ‘describe table’ (or ‘show create table’) for your table.

you probably also don’t want to do this marshall manually.

Look into :serializable

`body` text COLLATE utf8_unicode_ci,