Hi,
I want to upload file to specific location using asp.net web service.
I have tried to write the code like below.
byte[] file = FileUpload1.FileBytes;
with passing web service. Web service works fine as of now .But client can be windows service may not web application.
File path can be sent to service. From file path,I want to convert to byte array.
So I used the below code
byte[] array = File.ReadAllBytes("C:\\Users\\mani\\Desktop\\sample123.txt");
But it is not working.
Array always contain zero{byte[0]}. Not sure what is the issue here.
Kindly let me know if somebody have an idea.
Mani.R