Saving Annotations to a database

Mar 14, 2013 at 9:43 PM
Can you save and retrieve annotations to the database
Mar 14, 2013 at 10:47 PM
Yes you can, you can save the entire XML representation of the AnnotationStore to a stream using the Save method. The Save methods accepts a stream which you can store in a database.

The SampleAnnotations.xaml.cs (in the source at 2.5\Document Toolkit Extensions\Applications\SampleBrowser\Views) contains an implementation where the AnnotationStore is serialized to the local isolated storage. You can use that as a starting point to save the annotations to the database.
Oct 30, 2013 at 12:04 PM
I also want to save the annotation to database but im not clear actually how can i do this? As Save method of AnnotationStore is write the annotation to Stream, so i need to save this stream to database ??
Please let me know the structure of database table which need to create for saving annotations like columns and its datatypes.