What type is the best to manage binary data in Java?

后端 未结 5 1479
时光说笑
时光说笑 2021-02-13 03:30

I\'m getting some documents from the web and many of them are binary files (executables, PDF, etc.). In Java, what is the correct type to hold the binary data until save it in d

5条回答
  •  野性不改
    2021-02-13 04:13

    Don't save files directly to a database. Save them to a filesystem instead and save the path to the file in the database. That's what file systems are for. You will get performance problems if you stuff binary files into your database.

提交回复
热议问题