This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi Thank you for reading my post I have an string like
This is My new Car.
I should convert it to an inputStream in otder to be able to use that stream in an API I use following code to convert the string to inputStream
Now when i use this byteArray it removes all of my new line characters (enter) and all of my words come one after another.
I found it after several hours of hard works to figure out what is wrong with the API, How i find that bytearray removes all New Line (enter) characters? I find it by writing the content of the above array into a file
code snippet that i used to write the array into the file is like:
Can you tell me how i can preserve those New Line (enter) characters after each line?