Hi David, Just looking into this to refresh my memory on it... my recollection was that I had written converters to store these datatypes as multiple columns in the DB.
HOWEVER.... it would seem that these aren't being picked up. Therefore the blob that you see in the database is the (Java) serialized version of the Blob object (and ditto for Clob). Not exactly ideal. I've raised ISIS-714 [1] to fix this, but will defer until 1.5.0, I think. In the meantime, under ISIS-695 (tidy up tasks for 1.4.0) I've made some initial fixes (not that any of these fixed the issue): - the plugin.xml file that declares the blob/clobs converters was also specifying the wrong package, so that, at least is fixed. - I've also moved from the jdo-applib module to jdo-datanucleus (in case the plugin.xml needs to be in the same module as the converters...). There's more information about how this works on the DN site [3], so a patch from anyone getting this working would be most welcome :-) Dan [1] https://issues.apache.org/jira/browse/ISIS-714 [2] https://issues.apache.org/jira/browse/ISIS-695 [3] http://www.datanucleus.org/extensions/rdbms_java_types.html On 20 February 2014 04:48, David Tildesley <[email protected]> wrote: > Hi Dan, > > Speaking of blobs, we noticed that somehow ISIS is persisting metadata > with the uploaded blob (e.g. filename and maybe mimetype?). We were just > wondering how this is done as we have to migrate an existing database table > with a blob column (jpg photo) to our ISIS based app and we think we may > have to bulk load through the framework rather than direct to the dom > entity table. Or any other suggested approach for this once off migration? > > Regards, > David. > > > > > > On Thursday, 20 February 2014 4:27 PM, Dan Haywood (JIRA) <[email protected]> > wrote: > > Dan Haywood created ISIS-705: > -------------------------------- > > Summary: Support actions accepting parameters, and also bulk > actions, that return Blobs/Clobs > Key: ISIS-705 > URL: https://issues.apache.org/jira/browse/ISIS-705 > Project: Isis > Issue Type: Improvement > Components: Viewer: Wicket > Affects Versions: viewer-wicket-1.3.1 > Reporter: Dan Haywood > Assignee: Dan Haywood > Priority: Minor > Fix For: viewer-wicket-1.5.0 > > > The issue here is that the returned Blob/Clob must be handled with a > scheduled handler (see ActionResultResponseHandlingStrategy class) but it > is also necessary to refresh the page by redirecting to a new page. (In > the case of an action accepting parameters, want to remove the dialog. In > the case of a bulk action, want to clear the toggles and refresh the list). > > Haven't yet figured out how to do that ... :-( > > > > -- > This message was sent by Atlassian JIRA > (v6.1.5#6160) >
