portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Geymond" <adrien.geym...@aliceadsl.fr>
Subject RE: Upload file over wsrp4j
Date Tue, 15 May 2007 11:00:54 GMT

I did not manage upload successfully file upload with WSRP4J
but it is one of my activities in the future. So I am
interesting to discuss the approach.

Actually, I do not use Apache Commons FileUpload.

What I did is the following but I am not sure that I have
understood the way to manage file upload using wsrp4j:

I have read
that we have to get the content of the file from the upload
data in the SOAP message. So i have updated the class
PortletInvokerImpl in order to decode the byte array of the
soap message

I get the following content if I upload the file
agd.properties that contains 2 lines (titi=tata....)

Content-Disposition: form-data; name="tokenFile";
Content-Type: application/octet-stream


Content-Disposition: form-data; name="uploadButton"


The information of my form is well transferred in the
message, BUT the problem is that i do not know how to use
this data in my portlet. Indeed, in the portlet if i try to
get the content of the file directly from the http form I
get an empty file.

I have to investigate that, but currently I am working on
another project. If you have some ideas or if you want some
more information Do not hesitate to contact me.

I will try to make some more tests this week... in order to
have more ideas of exactly what happens.

kind regards,

-----Message d'origine-----
De : Kevin Irmscher [mailto:kevin.irmscher@gmail.com] 
Envoyé : lundi 14 mai 2007 16:15
À : adrien.geymond@aliceadsl.fr
Objet : Re: Upload file over wsrp4j

Hi Adrien,

did you manage to get file upload to work with WSRP4J as
Currently I'm working on the same topic. Did you use the
Apache Comons
FileUpload package? I always get an exception because of the
wrong request
content type.

It would be greatly appreciated if you shared some information.


------------------------ ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! ---------------
Découvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en cliquant ici http://alicebox.fr
Soumis à conditions.

View raw message