Hi,
I have to convert a file into a byte stream which is to be sent to the web service for saving it into the server.
Can anyone tell me how can i convert it. Actually, I don'nt have time to search google.
Suraj
Converting file into bytestream
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Muhammad ShakirRank #1,217 · 1.5K reputationPosted Jan 4, 2007, 11:48 PM EST
byte[] data = File.ReadAllBytes(filename);// read all encrypted byes
using above line you can convert your text file's data into byte data.
data has all byes of your file that you may send.
hitendra patel2 reputationPosted Mar 22, 2011, 10:33 PM EDT