Link to home
Start Free TrialLog in
Avatar of InteractiveMind
InteractiveMindFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Unicode file to byte array?

Hey all.

My application will need to, at some point, read a file into a byte array, for processing. However, if this file is in Unicode format, will that prevent me from being able to read it into a byte array??

Any possible workarounds?

Cheers,
>> IM
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As Java's String class supports Unicode you can also read it as a text file

http://www.javaalmanac.com/egs/java.io/ReadLinesFromFile.html
Avatar of InteractiveMind

ASKER

Cheers, Mick.
>> IM