Retrieving Serializable data fields from alf_nodes_propertie
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2007 05:05 PM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2007 11:54 AM
<property name="lease:Well">
<type>d:text</type>
<multiple>true</multiple>
<default></default>
<constraints>
<constraint ref="lease:wells" />
</constraints>
</property>
<type>d:text</type>
<multiple>true</multiple>
<default></default>
<constraints>
<constraint ref="lease:wells" />
</constraints>
</property>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2007 05:37 AM
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
Thanks,
Kevin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2007 09:56 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2007 06:41 AM
java.io.ObjectInputStream
