Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Puerto Rico
    Posts
    69

    Unanswered: Saving images in DB

    I'll use a DB to store info for a game I'm making and i have the follwing questions:

    1. Anyone have an idea on how saving image files in the DB?
    2. What column type must be used?
    3. How can I encode/decode with the queries stuff wrote/read in/from that DB?

  2. #2
    Join Date
    Aug 2004
    Posts
    2
    2. You can do it using the longblob datatype.
    3. Do it via:

    rs.getBytes("longBlobColumnName") where rs is a ResultSet.

    Good luck.

Posting Permissions

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