Skip to content

Artifact inlineData base64 is weird. #329

Open
@cjgammon

Description

@cjgammon

Describe the bug
The base64 data returned by the API is in a format that requires processing to use in any web application. It seems to be in base64URL format which requires replacing non standard characters.

To Reproduce
Call the /artifacts/${artifactName} endpoint
Try to turn it into a usable image.

Expected behavior
I don't need to manually change the data to utilize it.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: OSX 15.3.2
  • Python version(python -V): 3.11.5
  • ADK version(pip show google-adk): 0.1.0

Additional context

Current processing required is

base64url.replace(/-/g, '+').replace(/_/g, '/');

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions