Skip to content

Download Image Field - How to get full Image from SDK? #218

Answered by andreatosato
andreatosato asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I connect to wrong environment.
I change a little code and refactor.
Now WORKS!

 public class DownloadImages
    {
        private static CrmContext cli;

        public DownloadImages(CrmContext db)
        {
            cli = db;
        }

        public async Task<byte[]> DownloadAsync(Entity e, string fileAttributeName = null)
        {
            // Initialize download
            InitializeFileDownload(e, fileAttributeName, out string downloadToken, out long fileSizeDownload, out string downloadFileName);

            // Download
            return await DownloadFileAsync(downloadToken, fileSizeDownload, downloadFileName);
        }

        private void InitializeFileDownload

Replies: 14 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MattB-msft
Comment options

You must be logged in to vote
1 reply
@MattB-msft
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #217 on December 15, 2021 18:12.