A
Anthony Papillion
Hello Everyone,
I've been searching this out for almost three weeks and I simply can't find
an answer anywhere. I see a lot of people asking about it but nobody seems
to know the answer. Since I've gotten a few questions answered on this
group before, I'm going to ask the question again here. It's about uploading
a file as part of a WebRequest.
My application is a mobile one which means I'm using the .NET Compact
Framework and thus, don't have access to the WebClient.UploadFile method.
But even if I did, that wouldn't work here since I need to pass several
parameters along and UploadFile() doesn't allow you to do that anyway.
The documentation to the API I'm working with tells me to create a POST
request and pass the following data to the API:
Subject - which is the subject of the file being uploaded
Recipient - the person receiving notification
Source - The raw binary data of the file to send
Obviously, since the API calls for this, this can be done, but HOW do I do
it? Note that I need to be able to do this without any third party
assemblies. It has to be a standard POST using WebRequest.
Can anyone give me some direction?
Thanks!
Anthony
I've been searching this out for almost three weeks and I simply can't find
an answer anywhere. I see a lot of people asking about it but nobody seems
to know the answer. Since I've gotten a few questions answered on this
group before, I'm going to ask the question again here. It's about uploading
a file as part of a WebRequest.
My application is a mobile one which means I'm using the .NET Compact
Framework and thus, don't have access to the WebClient.UploadFile method.
But even if I did, that wouldn't work here since I need to pass several
parameters along and UploadFile() doesn't allow you to do that anyway.
The documentation to the API I'm working with tells me to create a POST
request and pass the following data to the API:
Subject - which is the subject of the file being uploaded
Recipient - the person receiving notification
Source - The raw binary data of the file to send
Obviously, since the API calls for this, this can be done, but HOW do I do
it? Note that I need to be able to do this without any third party
assemblies. It has to be a standard POST using WebRequest.
Can anyone give me some direction?
Thanks!
Anthony