I´ve created a webservice in .NET 2.0 to interact with
serveral excel files to display and sort data in Flex. Now I would
like to add the ability to upload new excel files using the
I have download an example Component from everything Flex
Tretola ) and have implemented it. When try to use it to POST to a
webservice the post call goes out OK, I get a HTTP/1.1 100 Continue
Response from the server and then I get an ioErrorHandler error
eventPhase= 2 text="Error #2038: Error de E/S de archivo....... and
no file has been uploaded. Any Ideas? I have found examples of how
to do the server script in CF but need it in ASP.NET 2.0, or for
the future in Java.
The answer is: don't try to upload the file to a web service.
Instead register an HTTPHandler in your web.config file. You can
then create a class that Implements the IHTTPHandler interface.
Your FLEX application will point to this page.
Within the class you can access the file stream being
uploaded with the Request.Files attribute. If you need me to
elaborate, let me know.