How to add article images via web services ?

Vote:
 
The sample in FAQ #Q3554 shows how to publish articles via web servies. This is good for cross-publishing fra intra- to internet site. But that about images or documents included in the article? Any sample code on how to transfer those as well?
#12003
Oct 15, 2003 15:06
Vote:
 
There is one way to do it if you need to upload files to the page directory, for example: WebClient client = new WebClient(); client.UploadData("http://localhost/util/SaveAttachment.aspx?id=30&filename=test.doc",fileBuffer); where fileBuffer is the raw bytes of the file. This page requires edit access so you have to configure authentication the same way as for web services. The file in this example is stored in "/upload/3457/test.doc" or whatever the name of page folder is.
#13516
Oct 21, 2003 9:20
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.