Posting pdf using mime

I need to build a service to read pdf file from a shared drive and send the file as a mime stream as base 64 encoded using http post and at the receiving end read the pdf and write it to another shared drive. I am able to send the file using https post, but on the receiving end I am receiving the file but not able to decode and write the file to the shared drive, has any one accessed pdf send via mime, if so can you help what kind of decoding you have used for the same?

I am using wmpublic base64 decode for this.


Hi I was having trouble in using built in services, I was able to achieve the same using Java Services.