?
Solved

Unicode file to byte array?

Posted on 2005-02-26
3
Medium Priority
?
310 Views
Last Modified: 2010-03-31
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
0
Comment
Question by:InteractiveMind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 13409704
that won't stop you, you can read any file regardless of format into a byte array

http://www.javaalmanac.com/egs/java.io/File2ByteArray.html
0
 
LVL 92

Expert Comment

by:objects
ID: 13409706
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
0
 
LVL 25

Author Comment

by:InteractiveMind
ID: 13409743
Cheers, Mick.
>> IM
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question