Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting char array to input stream

843785Dec 19 2008 — edited Dec 21 2008
Hello,
I want to convert a character array to an input stream? What is the best way to do it? One way is to convert the character array into a byte array, and then convert it into an input stream. How do we convert the char array into a byte array? Or there is a better way to convert the char array into an inputstream?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2009
Added on Dec 19 2008
15 comments
2,482 views