cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving Serializable data fields from alf_nodes_propertie

billbiddy
Champ in-the-making
Champ in-the-making
I appologize if this is the wrong forum or if this an elemetary question.
I am very new to alfresco and am retrieving a record from the alf_node_properties table that was created when an aspect was applied to a piece of content's properties.
I get a mutiple selection of objects in a serializable field. How do I deserialize those values.
To further complicate teh solution I am using .NET.

I tried taking the value as a byte[] and using the BinaryFormatter.Deserialize method to get me an object but .net complains that "the input stream is not a valid binary format".

Any help on this would be greatly appreciated.

Bill Biddy
4 REPLIES 4

billbiddy
Champ in-the-making
Champ in-the-making
<property name="lease:Well">
  <type>d:text</type>
  <multiple>true</multiple>
  <default></default>
  <constraints>
      <constraint ref="lease:wells" />
  </constraints>
</property>

kevinr
Star Contributor
Star Contributor
Java object serialization is not the same as the mechanism used by .NET runtime. I'm not sure how you can do this except for finding the binary format that the Java JVM uses and implementing a custom reader for this in your .net app - it will probably be quite involved. The good news is that the Sun Java source can be downloaded and examined to find out how they save/load objects as a starting point for your own code in .net.

Thanks,

Kevin

webworks2000
Champ in-the-making
Champ in-the-making
I'm trying to do the same thing as bill but via Java…

Would it be possible to get an example of how to deserialize the return from sql into an actual Java object?  It'd be much appreciated!

Thanks,
Jeff

derek
Star Contributor
Star Contributor
java.io.ObjectInputStream