Expand my Community achievements bar.

Java CLOB and BLOB to Actionscript VO

Avatar

Level 1
The Data Services backend is Java, Hibernate, and JBoss. I
have a table with a column that is a CLOB (character large object).
In Java the datatype is mapped to a java.sql.Clob and is easily
accessible from Java code. How do I transfer the Clob data to the
Flex Actionscript Value Object equivalent? I've set the data type
of the attribute to String and Object in the Actionscript VO but
all I get from Flex Data Services is a references to a managed
object. No translation to a primitive type is automatically done.
What am I missing?



Same question goes for BLOBs.



Thanks for the help!
1 Reply

Avatar

Former Community Member
This sounds like a worth candidate for an enhancement
request, I'll log one

for you on your behalf.



As a work around for now, can you convert your java.sql.Clob
to a char[]?

This should be returned as a String on the client. As for
java.sql.Blob,

can you convert that to a byte[]? This should be returned as
a flash.utils.ByteArray

on the client.