Reading and writing images in Database.

Discussion in 'Java' started by getsanjay.sharma@gmail.com, Aug 5, 2007.

  1. Guest

    Hello to all Java programmers out there.

    I am currently writing a web application which allows the user to
    upload files on the server as their avatar. I am using JBoss 4 as my
    application server, Java 1.5, MS Access as my DB (if you would be kind
    enough to call it that) and Apache commons FileUpload module.

    I have been successful in saving the file to the disk at an absolute
    location (c:/photos) but am at a loss on how to save it to my projects
    'image' folder i.e. the path relative to my application root
    directory. I have a folder 'image' in the application's root directory
    but am unable to store the file at that location. I tried various ways
    of obtaining the path but to no avail. Also since I am using WAR files
    for running project, I have to enter the image in the WAR file but
    have no idea on how to do that.

    I would really appreciate if someone would lend me a helping hand in
    this situation.

    Thanks and regards,
    S T S.
    , Aug 5, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrija
    Replies:
    1
    Views:
    813
    William Ryan
    Oct 5, 2003
  2. Mark Stijnman
    Replies:
    4
    Views:
    331
    Mark Stijnman
    May 12, 2005
  3. Replies:
    7
    Views:
    521
  4. Replies:
    2
    Views:
    357
  5. Parth

    MSMQ reading Database Writing

    Parth, Sep 1, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    508
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 1, 2007
Loading...

Share This Page