Results 1 to 3 of 3

Thread: File upload

  1. #1
    Join Date
    Jan 2005
    Location
    Utrecht, The Netherlands
    Posts
    34

    Default File upload

    Hi,

    In my application I have an Image object, that contains several String fields and a field that contains the actual content (byte[]).

    I have written an HTML form that will allow me to edit such an Image object. This form is processed by a SimpleFormController. Everything works fine, except that when editing my image I always need to upload the image again. If I don't than the column in the database holding the actual image, is set to null.

    Is there some way I can check if no image was uploaded and in that case only modify the other fields and leave my original image data intact?

    Thanks for any help,

    Arjan Huijzer

  2. #2

    Default

    There's probably a better way, but why not just grab the existing image (if it's there) and set it again when you're editing the object?
    PJ

  3. #3
    Join Date
    Jan 2005
    Location
    Utrecht, The Netherlands
    Posts
    34

    Default

    Hi,

    That's exactly what I am trying to prevent. I use the web interface to my database from several remote locations, where I do not have the image on the hard drive. This means that if I want to edit an image object I first have to view my image object and save the picture after which I can then change the Image. It's just annoying....

    Thanks for your reaction.

    Arjan

Similar Threads

  1. Cannot upload file using web flow
    By mcsenter in forum Web Flow
    Replies: 5
    Last Post: Mar 7th, 2011, 09:10 PM
  2. Deferred file upload
    By Thomas Matzner in forum Web
    Replies: 4
    Last Post: Sep 30th, 2005, 12:06 PM
  3. Replies: 1
    Last Post: Jun 16th, 2005, 04:53 AM
  4. Replies: 1
    Last Post: Jun 16th, 2005, 04:30 AM
  5. Replies: 0
    Last Post: May 24th, 2005, 01:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •