Send word document

  • Thread starter Thread starter neoret
  • Start date Start date
N

neoret

How do I send a word document as an attachement to a http call?

Guess I have to parse it to bytes - does anyone know how this is done?

Thanks for any help you can provide :)

neoret
 
Are you talking about a Request (uploading) or a Response (downloading)?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
The only way to do this is to use a POST request, with the enctype attribute
set to "multipart/form-data" and the binary content of the file as a form
field. There are a number of rules for the contents of the form POST,
including the use of boundaries, and Base64 Content-Transfer-Encoding to
encode the binary data.

See http://www.faqs.org/rfcs/rfc1867.html and
http://www.faqs.org/rfcs/rfc1521.html for details.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top