microsoft / microsoft/AdaptiveCards

.Net AdaptiveImage not working for base64 strings

Open
#8,983 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Schema Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Application

.Net Adaptive Card

Application Operating System

Windows

Schema Version

any

Problem Description

When using a base64 Url for the url field I get the following exception.

System.UriFormatException: Invalid URI: The Uri string is too long.

Expected Outcome

I can use base64 images in my url field

Actual Outcome

I cant

Card JSON
I cant generate the card due th the error
Repro Steps

use a large uri

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the .NET AdaptiveImage implementation and reproduce the UriFormatException using a large base64 URL. The issue provides no file, test, or complete card JSON; done means base64 image URLs work without the URI-too-long error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.