Results 1 to 2 of 2
  1. #1
    aibao is offline Member
    Join Date
    May 2011
    Posts
    4
    Rep Power
    0

    Default Save Object to Blob

    Good afternoon everyone! :)

    Do you know how to save an Object instance to Blob?

    Please help me if you do.

    Thank you.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default

    Serialize the object then pass its InputStream to the JDBC Statement (for example, using the PreparedStatement method setBlob() ).

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2011, 06:11 PM
  2. How to save a panel object
    By usha in forum AWT / Swing
    Replies: 7
    Last Post: 12-11-2010, 01:40 PM
  3. Is this the proper way to save an object?
    By ryuzog in forum New To Java
    Replies: 6
    Last Post: 10-10-2010, 02:32 AM
  4. Retrieving image stored as BLOB object in oracle
    By venkateshcoolmoon in forum JDBC
    Replies: 11
    Last Post: 01-17-2010, 06:06 PM
  5. Saving Blob through Hibernate
    By Ed in forum JDBC
    Replies: 2
    Last Post: 01-05-2009, 05:03 AM

Posting Permissions

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