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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
hitendra patelPosted Mar 23, 2011, 2:33 AM
Muhammad ShakirPosted Jan 5, 2007, 4:48 AM
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.