hi ,
my requirement is to download annotation in clients computer on click of a button.
i went through a sample program in SDK to download attachment. SampleCode\CS\BusinessDataModel\Annotation\UploadAndDownloadAttachment.cs
here is the code
// Retrieve the annotation record. Annotation retrievedAnnotation = (Annotation)_serviceProxy.Retrieve("annotation", _annotationId, cols); Console.WriteLine(", and retrieved."); _fileName = retrievedAnnotation.FileName; // Download the attachment in the current execution folder. using (FileStream fileStream = new FileStream(retrievedAnnotation.FileName, FileMode.OpenOrCreate)) { byte[] fileContent = Convert.FromBase64String(retrievedAnnotation.DocumentBody); fileStream.Write(fileContent, 0, fileContent.Length); }
here file is getting downloaded in execution folder. ie : bin folder.
how to download an annotation to clients computer ?
Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.