java - OrmLite DataType.BYTE_ARRAY Data too long for column -



java - OrmLite DataType.BYTE_ARRAY Data too long for column -

i struggling inserting blob, using mysql. notice ormlite creates corresponding column datatype blob, while require longblob, since exception thrown telling me

data long column

i annotate column:

@databasefield(datatype = datatype.byte_array)

what options left, besides running rawquery when creating table?

oh ok, got this. have add together following:

@databasefield(datatype = datatype.byte_array, columndefinition = "longblob")

java ormlite

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -