1 Reply Latest reply on Aug 15, 2008 4:09 PM by Damian Harvey

    How to Store image in database and reterview it... in seam

    shashi kumar Newbie

      I am new to jboss seam ...


      How to store image in database.. and reterview image from database.


      I am using postgres 8.3...


      Now i am using OID data type to store it...



      my java class is like this


      private bradingLogo; (get and set method)



      brandinglogo is of type byte array


      I user @Lob Annotations for set method....


      Getting the byte array from


      UploadItem upload; 


      and setting to variable brading logo...



      If i am using bytea datatype ... it provides exception...
      column is bytea but you have integer...


      How to upload a image to database using jboss seam....
      Whether to use bytea datatype or ODI to insert images..





      Please help me...


      shashi