IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Unable to Insert Image into Database

    Posted 03/24/16 01:24 PM

    Hi all,

    I need to read an image(jpg/jpeg/png) from my local machine and insert it into database and then fetch it from database using an adapter and then write in my local machine.

    Should i write a custom service (Java Service) to read the image file…?

    Or the below method would work…

    pub.getFile–>read as bytes
    base64encode—>encode the value(string)
    insert into DB–>clob datatype
    fetch from DB—>adapter
    base64decode—>generate the value(obj)
    writeToFile—>write to local location

    Please tell if the above method would work OR is there any other better Method…? :idea:


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Unable to Insert Image into Database

    Posted 03/26/16 09:56 AM

    The flow seems to be good interms of design (I have to develop and test) but try to check blob instead of clob data type in db.

    Also writing custom java service would help but I would prefer either go with the flow service or write db stored procedures which will ease your implementation.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Unable to Insert Image into Database

    Posted 04/03/16 09:22 AM

    For Images only Blob format will work as expected not Clob.

    BLOB stores as Large Object in bit-streams.
    CLOB stores as Large Object in character streams.

    Regards,
    Syed


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods