microsoft / microsoft/AdaptiveCards
.Net AdaptiveImage not working for base64 strings
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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