Re: File Upload Web Service
From: Alphonse Giambrone (NOSPAMa-giam_at_example.invalid)
Date: 04/10/04
- Next message: Brian Henry: "using ~ (virtual path) with images"
- Previous message: Lori McDonald: "Re: Troubleshooting Object Reference Not Set to Instance of an Object"
- In reply to: Steven Cheng[MSFT]: "RE: File Upload Web Service"
- Next in thread: Michael Mayer [C# MVP]: "Re: File Upload Web Service"
- Reply: Michael Mayer [C# MVP]: "Re: File Upload Web Service"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 10 Apr 2004 16:29:57 -0400
Thanks both for the replies.
The Office toolkits are not an option. I should have mentioned that I am
using vba with wininet api for the upload because I need the solution to
work with Access 97 and up without any additional references or installs. It
is pretty safe to assume my users have IE and therefore wininet.dll.
It seems that you are saying I can't post the file to a web service, but can
to a web page. This would be ok if need be, but I would prefer using a web
service.
Am I understanding this correctly?
-- Alphonse Giambrone Email: a-giam at customdatasolutions dot us "Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message news:yJ$BPhqHEHA.3904@cpmsftngxa06.phx.gbl... > Hi Alphonse, > > From your description, you are wanting to generate a webserivie or a > webform page which can help process the uploaded file postd from a > client(OFFICE VBA ?). > > As for this question, here are my suggestions: > 1. If use WebService, it is general that we define a certain webmethod > which takes a byte array param and a string param such as > pubic void UploadFile(bytes as Byte() , filename as String) > > And then, we can easily call it in .NET application since we can use the > WSDL.EXE or the VS.NET to generate a easytouse client proxy class. > > However, since you'd like to call the webservice in VBA application, I > think two mean in VBA can help to call webservice: > a) use MXXML COM component to send raw XML soap message, this will have us > to write the soap http message manually and post it via XMLHTTP component. > > b) There is a webservice add-in in OFFICE which can help to generate a > webservice proxy. I think this will be more convenient. You may have a > search in MSDN to see whether the certain ADD-IN will help. > > > 2. In addition to webservice, I think a simple asp.net webform page is also > capable of handling client uploaded file. The ASP.NET 's butildin > Request(HttpRequest class) object has a "Files" member which can help to > handle the client uploaded files. Here are some references on the > HttpRequest.Files member and handle upload files in ASP.NET: > #HttpRequest.Files Property > http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebhttprequest > classfilestopic.asp?frame=true > > #Uploading Files Using the File Field Control > (this article is focus on use webform to upload, but you can also get ideas > on how to handle the file steam from other clients) > http://msdn.microsoft.com/library/en-us/dnaspp/html/aspnet-fileupload.asp?fr > ame=true > > Regards, > > Steven Cheng > Microsoft Online Support > > Get Secure! www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > > Get Preview at ASP.NET whidbey > http://msdn.microsoft.com/asp.net/whidbey/default.aspx > > > > > >
- Next message: Brian Henry: "using ~ (virtual path) with images"
- Previous message: Lori McDonald: "Re: Troubleshooting Object Reference Not Set to Instance of an Object"
- In reply to: Steven Cheng[MSFT]: "RE: File Upload Web Service"
- Next in thread: Michael Mayer [C# MVP]: "Re: File Upload Web Service"
- Reply: Michael Mayer [C# MVP]: "Re: File Upload Web Service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|