Mysql byte array storage

前端 未结 3 1355
情书的邮戳
情书的邮戳 2021-01-01 22:17

I have a byte array created in Java. It represents content of some file. I don\'t know exactly the maximum size of this array. It can be different sizes. I want to store it

相关标签:
3条回答
  • 2021-01-01 22:30

    Use varbinary to store byte arrays of arbitrary length in MySQL.

    0 讨论(0)
  • 2021-01-01 22:31

    use a blob field

    java serialblob

    mysql blob

    0 讨论(0)
  • 2021-01-01 22:50

    Use BLOB, medium blob , varbinary

    Mysql Choosing the Right Type for a Column

    0 讨论(0)
提交回复
热议问题