Oracle Weblogic Server (MOSC)

MOSC Banner

How to save JsonObject as BlobDomain?

Good morning ninja developers,

I have implemented a rest client in my ADF application returning a Json Object response. According to oracle documentation, Json objects could be recorded on the database as Varchar2, CLOB or BLOB but they eventually recommend to use BLOB .

So I added a BLOB column to my target table and then declared it as BlobDomain class in ADF.

Before saving, I cast the Json Object response as String and convert it to BlobDomain object. But I get this error message when saving:

Cannot create an object of type:oracle.jbo.domain.BlobDomain from type:weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center