Results 1 to 6 of 6

Thread: How to insert image into Database

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question How to insert image into Database

    How can i use java code to insert image into Database(example MS Access)?

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

    Re: How to insert image into Database

    Not sure. Maybe you could store the location of the image rather than anything else. That could cut out a lot of work.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Re: How to insert image into Database

    Sometimes we should store the real image in the database in case that someone delete the original file.

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

    Re: How to insert image into Database

    You could create a byte stream, or maybe just use an outputstream to write the image to db.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Lightbulb Re: How to insert image into Database

    Is there any example?

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How to insert image into Database

    I'll take a wild guess
    but I think your example is there in the DB development forum
    it's the same for java, with a few small changes
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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