Re: File Upload Web Service

From: Alphonse Giambrone (NOSPAMa-giam_at_example.invalid)
Date: 04/10/04


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
>
>
>
>
>
>


Relevant Pages

  • Re: File Upload Web Service
    ... You'll have to remember that a webservice uses SOAP/XML for all method ... >> client(OFFICE VBA ?). ... >> capable of handling client uploaded file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: File Upload Web Service
    ... However, since you'd like to call the webservice in VBA application, I ... I think a simple asp.net webform page is also ... capable of handling client uploaded file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Uploading a file
    ... Chad DeMeyer ... > I am trying to upload a file using VBA. ... I have an access database that I ...
    (microsoft.public.office.developer.vba)
  • Re: Help with Javascript Validation. URGENT!!!
    ... I mean uploaded file i.e. i need to check either of the 2 options: ... I have a form which has one textarea for the user to enter some ... in the textarea or should have uploaded something to the server. ... If "chosen a file to upload" then you can check values of both form ...
    (comp.lang.javascript)
  • Re: Maximum file upload question
    ... I say nitpicky because I've been trying to figure out what an http request larger than ... an uploaded file but is larger than 1MB) the following web.config entry would cover all bases: ... You can, however, put the "upload file" page in its own sub-folder and put a web.config in that folder ...
    (microsoft.public.dotnet.framework.aspnet)