> So far so good....
> 
> Now for my problems :
> 
>       1) It seems the maximum length is about 64 KB, files 
> larger than this give
>               me a 'Check if uploaded file(s) exceeded allowed size'.
> 
>               ok, i can understand that, but where to put 
> that allowed size ??
> 
>               DBFORMS ? Where ?? maybe LONGBLOB in the XML file ??
>               MySQL : Should not matter, as its a LONGBLOB....

Web.xml, init-param of control servlet:
  <servlet>
    <servlet-name>control</servlet-name>
    <servlet-class>org.dbforms.servlets.Controller</servlet-class>
    <init-param>
      <param-name>maxUploadSize</param-name>
      <param-value>80000</param-value>
    </init-param>
  </servlet>

> 
>       2) How to determine whether a blob element is empty or 
> not in JSP.
>               I would like to blend in the (almost) standard 
> paperclip if a attachment
>               is present in a record. So I would like to do 
> something like :
> 
>               <% if (currentRow_table.get("blob_1") == null) { %>
>               ATTATCHMENT...... present
>          <% } else { %>
>               sorry, no attachment
Try rsv_table.getFieldAsObject("blob_1" == null instead of comparing it to the 
current_row. CurrentRow is a string vector and never
null!

Regards,
Henner



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to