How can we improve Azure DevOps?

Embeded inline image writing to WorkItem description throught API [C# Code]

I am trying to create update WorkItem through TFS API [C# Code]. My description content is coming from some other system and having inline image embedded [Image as base 64 encoded].

I have noticed that when the image size is smaller near to 30 kb, it is getting updated in the TFS description field and it is showing fine. But when image size is more then 100 kb, it is not showing any content to the WorkItem description. It just writing <img> tag without src attribute.

I have also noticed that it is allowing to set the long base 64 encoded source of image to the description but when we save the workitem with workItem.Save();, the image source gets removed.

Attached is the sample program I am running.

In the above program for the smaller image encoded data, it is writing image to the description field but for the larger image it is just writing image tag like <img alt=""> and showing empty description on the UI. [Because of the character limit, I am not able to keep both image encoded data in the example.]

Is there any image size limit while writing from API ? If yes, is it configurable or fixed ?

From UI I am able to copy same image to description and save it.

TFS Instance Details:

Visual Studio Team Foundation Server 2013

Version 12.0.21005.1

Thanks,

2 votes
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Niraj shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

We want to build a product that our users love. User Voice provides us a great platform to let any TFS/VSTS user tell us what is important to them. We closely pay attention to the most popular suggestions.

Too many suggestions in User Voice however will make it hard for you to find the suggestions you want to support. We will regularly archive the suggestions created more than a year ago and has low number of supporters.

When a suggestion is archived, you can still view them, but you can’t support them anymore. Also Microsoft will not pay attention to these suggestions.

0 comments

Comments are closed

Feedback and Knowledge Base