Results 1 to 4 of 4

Thread: uploading image file and inserting valuables to DB

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    277

    uploading image file and inserting valuables to DB

    hihi..

    i have difficulties on uploading image file and some file's values to the Db at the time when i post the form(jsp).

    example;
    i have selected some files name(with the full file path) ready to be uploaded to the server, and key in some values related to the file name in the text boxes. When i clicked on the send button, it will post the form by uploading the image file to the server folder, and insert the file value into the DB.

    i have tried some of the sample code, but its either posted the file values only, or the imges whitout inserting the file values into the DB.

    how can i do it at one single post to get 2 jobs done using jsp?

    ???
    ocw

  2. #2
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Re: uploading image file and inserting valuables to DB

    can you post your JSP so we can see what you are currently doing?

  3. #3
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: uploading image file and inserting valuables to DB

    How are you inserting the file into the database?

  4. #4
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Re: uploading image file and inserting valuables to DB

    why not just insert a path in the DB and keep the files on disk, then you won't inflate the size of your db by filling it up with blobs...

    Still upload the file and just stash it locally.

Posting Permissions

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



Click Here to Expand Forum to Full Width