take a read of this - you may be able to get it working from within word.
You should almost certainly be able to use the IE object example from within
word.
http://www.motobit.com/tips/detpg_post-binary-data-url/
--
Regards
John Timney
Microsoft MVP
"Aj Blosser" <AjBlosser@discussions.microsoft.com> wrote in message
news:C1D380DD-D57F-48D2-ABCD-7B4D350EA8F7@microsoft.com...[color=blue]
> Right, but is there some kind of upload function? I need to do this from
> an
> application as It's part of an MS word addin. as of now I'm using
> MSXML2.ServerXMLHTTP to send the POST request, but what I can't figure out
> is
> how to send the file over. I'm assuming that the "body" parameter of the
> send method is for the POST query string, this might be my problem, but I
> can't find any specifics on this.
>
> "John Timney ( MVP )" wrote:
>[color=green]
>> You need to perform a http upload, whether from an asp.net page, or from
>> an
>> application. PHP knows how to accept form data with attachments and word
>> docs need to go over the wire as complete files or you will lsoe all the
>> formatting. If you dont need it preserved as a word doc, use word
>> automation to open the doc and read its contents.
>>
>> --
>> Regards
>>
>> John Timney
>> Microsoft MVP
>>
>> "Aj Blosser" <AjBlosser@discussions.microsoft.com> wrote in message
>> news:917D5B43-61AB-40F5-9054-B8A4DD9FF8AC@microsoft.com...[color=darkred]
>> > Hey guys, I have a question for you,
>> > I have a setup where I'm sending files through the POST to a php web
>> > page,
>> > I
>> > read the file contents, put that file contents as text into the POST
>> > string,
>> > and send it on it's way.
>> >
>> > it works perfectly for text files. However, I can't open a word
>> > document
>> > like a text file and have it give me the result I need. I'm looking
>> > for a
>> > way to just open a word document and get all the values in it like you
>> > would
>> > if you opened it with notepad. any ideas? or any suggestions on how to
>> > better send a non-text file through post? Thanks![/color]
>>
>>
>>[/color][/color]