U
UJ
I'm trying to upload stuff using the UploadFile from WebClient and I've
noticed that it adds header and footers to the stream.
Is there any way to get rid of that automatically?
I'm using
webclient.UploadFile("http://127.0.0.1/ECSWebServices/UploadItem.aspx",
"POST", "C:\Test.txt")
and the file ends up looking like:
-----------------------8c8a61883d4721e
Content-Disposition: form-data; name="file"; filename="test2.txt"
Content-Type: application/octet-stream
This is a test file.
-----------------------8c8a61883d4721e
How do I get rid of the header/footer?
TIA - Jeff.
noticed that it adds header and footers to the stream.
Is there any way to get rid of that automatically?
I'm using
webclient.UploadFile("http://127.0.0.1/ECSWebServices/UploadItem.aspx",
"POST", "C:\Test.txt")
and the file ends up looking like:
-----------------------8c8a61883d4721e
Content-Disposition: form-data; name="file"; filename="test2.txt"
Content-Type: application/octet-stream
This is a test file.
-----------------------8c8a61883d4721e
How do I get rid of the header/footer?
TIA - Jeff.