Hi all,

I have been trying to use the blob functionality within dbforms.
And apart from my problems it works ok, but not quite.

I can upload and download images (blobs).
I use MySQL LONGBLOB....

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

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

        Unfortunatly, above always evaluates to true.... perhaps something like
                        ' == emptyblob()'

        /me confused

Thanx,

Fred





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