Hi everybody,
I need to retrieve preview image in Attachment, but I don't know how.
I try to using DocuRef, DocuValue, ImageReference and DocumentManagement but all failed.
DocuRef docuRef; select firstonly docuRef where docuRef.RefRecId == hcmWorker.RecId; DocuValue docuValue; select firstonly docuValue where docuValue.RecId == docuRef.ValueRecId; ImageReference imageReference = DocumentManagement::getThumbnail(docuRef); demoTmp.ImageStr = DocumentManagement::construct().getDisplayUrl(docuRef); //container conImgRef = ImageReference::GetPackedBinaryData(docuValue.AccessInformation); //demoTmp.Image = ImageReference::GetPackedBinaryData(imageReference.parmImageData()); //DocumentManagement::getThumbnailAsContainer(docuRef); demoTmp.ImageStr = DocumentManagement::construct().getImageFrameUrl(docuRef); //DocumentManagement::construct().getPreviewUrl(docuRef); demoTmp.ImageStr = DocumentManagement::construct().getPreviewUrl(docuRef); demoTmp.ImageStr = DocumentManagement::construct().getDisplayUrl(docuRef); demoTmp.ImageStr = docuRef.originalFileName();
I got the result is 127.0.0.1:10000/devstoreaccount1/documents/CD15AC4E-xxxx-xxxx-xxxx-DB4B81xxxxxx and filemanagement/_t/cd15ac4e-xxxx-xxxx-xxxx-db4b81xxxxxx?access_token=eyJDb21wYW55IjoiVEhNRiIsIkhhc2xxxxxRva2VuIjoiODNWWlVDSzY5Q0wwZ0JwazA1OFM0TWpKdmpOVxxxxxNkS1M1R2ZRU3FyclJRXC92anNVYUs0WHAyNlpMc1xxxxA0Z1ZienpWSmg4XC9TcXQ2MVE2UxxxxxUGFydGl0aW9uIjo1NjM3MTQ0NTc2LCJxxxxxSWQiOjU2MzcxNDQ1NzYsIlZhbGlkVW50aWxxxxxcL0RhdGUoMTY0MTI2NzQ4MxxxxxcLyIsIkZpbGVJZCI6ImNkMTVhYzRlLTM1YzktNDIzNC05MmEwLWRiNGI4MxxxxxTUyOCJ9&ms-dyn-caid=95cxxxxx-xxxx-0000-3b8c-c09511xxxxxx
I don't know how to present in container for display image in SSRS.
I spend a lot of time, I can't do that. Please help or give any suggestion to me.
Thank you so much.