I'm using oracle to with blob and I know this *&%& 4kb limitation,
can you send the java code and maybe some error ?
Le 18 nov. 04, � 09:42, Martin Marinschek a �crit :

strange... I don't have any problems with file-upload, using it every day...

just to tell you: the 4kB restriction in oracle is something you can
work around, if need be

regards,

Martin


On Thu, 18 Nov 2004 09:41:21 +0200, Alecsandru Chirosca <[EMAIL PROTECTED]> wrote:
 Hi,

 Here are the informations you requested.


The 4k limitation to fileupload is due Oracle BLOB handling limitation.


 Here are the relevant parts of web.xml :
   <filter>
     <filter-name>multipartFilter</filter-name>

<filter- class>net.sourceforge.myfaces.custom.fileupload.MultipartFilter</ filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>4k</param-value>
<description>limita de upload la fisiere</description>
</init-param>
</filter>
......
<filter-mapping>
<filter-name>multipartFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>



and from our jsp page :
.....
<jh:form id="form1" name="form1" enctype="multipart/form-data">
<jh:panelGrid id="pg1"
cellspacing="0px" columns="1" styleClass="bodyClass"
columnClasses="bodyTDLeft,bodyTDright">
<jc:facet name="header">
<jh:graphicImage
url="/afiseazaSigla?imagine=#{editorSigla.societatea.id}"
alt="imagine indisponibila"/>
<!-- this is an image display servlet -->
</jc:facet>
<je:inputFileUpload id="aUpload"
value="#{editorSigla.siglaNoua}"
storage="file"
accept="image/*"/>
<jc:facet name="footer">
<jh:commandButton id="trimiteimaginea"
value="trimite" action="#{editorSigla.modifica}"/>
</jc:facet>
</jh:panelGrid>
</jh:form>
.....



The problem is that the procedure editorSigla.modifica does not get called
at all when using multipart/form-data encoding.



Best regards, Alecs



On Wed, 2004-11-17 at 17:58, Nicolas Arni-Bloch wrote:
Are sure that the multipartFilter is enable ? Normally you must havesome
think like this in your web.xml (and uncommented)



<filter> <filter-name>multipartFilter</filter-name>

<filter- class>net.sourceforge.myfaces.custom.fileupload.MultipartFilter</ filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>10m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
</description>
</init-param>
</filter>


and if you doesn't put multipart/form-data in you form it's normalthat you
have a null value because the multipartFilter is not calledto.


 Le 17 nov. 04, � 16:41, Alecsandru Chirosca a �crit :


Hi list,


I have a problem width the fileUpload component, when I
usemultipart/form-data my form does noting (the button that connects tothe
upload() function from my bean does nothing. When I remove
themultipart/form-data encoduing declaration from the h:form element
theupload() function gets called but I hane null value in theupploadedFile
property.



Anyone had this problem? the page is quite large and includes a lot of HTML code.

 Any ideea will be apreciated.


Best regards, Alecs

 --
 Nicolas Arni-Bloch
 Groupe MATIS-Bd, Centre Universitaire d'Informatique
 24 rue General-Dufour
 CH-1205 Gen�ve
 eMail : [EMAIL PROTECTED]
 phone : +41 22 379 76 80
 fax : +41 22 379 77 80


--
Nicolas Arni-Bloch                                                              
Groupe MATIS-Bd, Centre Universitaire d'Informatique
24 rue General-Dufour
CH-1205 Gen�ve
eMail : [EMAIL PROTECTED]
phone : +41 22 379 76 80
fax : +41 22 379 77 80



Reply via email to