Question
1
Replies
556
Views
Posted: September 25, 2018
Last activity: October 1, 2018
How to convert File to ByteArray - I have file in service export path and i need to convert that file to ByteArray
How to convert File to ByteArray - I have file in service export path and i need to convert that file to ByteArray
I have only file name and path.
Please help with the java code.
***Edited by Moderator Marissa to update platform capability tags****
Can you please check the below article. It has the java code to convert a file in a byte array.
https://www.mkyong.com/java/how-to-convert-file-into-an-array-of-bytes/
Hope it helps.