Replace File with Byte[] in Java

Asked 2 years ago, Updated 2 years ago, 77 views

I want to change java.io.File to byte[] how do I do it?

java file-io

2022-09-22 22:33

1 Answers

I think you can write IOUtils.toByteArray(InputStream input) in the Apache Commons library.


2022-09-22 22:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.