Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64 encoded image isn't shown in app #107

Closed
bhopmann opened this issue May 2, 2020 · 4 comments · Fixed by #108
Closed

base64 encoded image isn't shown in app #107

bhopmann opened this issue May 2, 2020 · 4 comments · Fixed by #108

Comments

@bhopmann
Copy link

bhopmann commented May 2, 2020

When encoding an image with base64 using markdown, it isn't shown within the android app. On the server side it works as expected.

I'm using this request:

curl --location --request POST 'https://myserver.com/message?token=<secret>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "title":"Test",
  "message":"![Hello World](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAUCAAAAAAVAxSkAAABrUlEQVQ4y+3TPUvDQBgH8OdDOGa+oUMgk2MpdHIIgpSUiqC0OKirgxYX8QVFRQRpBRF8KShqLbgIYkUEteCgFVuqUEVxEIkvJFhae3m8S2KbSkcFBw9yHP88+eXucgH8kQZ/jSm4VDaIy9RKCpKac9NKgU4uEJNwhHhK3qvPBVO8rxRWmFXPF+NSM1KVMbwriAMwhDgVcrxeMZm85GR0PhvGJAAmyozJsbsxgNEir4iEjIK0SYqGd8sOR3rJAGN2BCEkOxhxMhpd8Mk0CXtZacxi1hr20mI/rzgnxayoidevcGuHXTC/q6QuYSMt1jC+gBIiMg12v2vb5NlklChiWnhmFZpwvxDGzuUzV8kOg+N8UUvNBp64vy9q3UN7gDXhwWLY2nMC3zRDibfsY7wjEkY79CdMZhrxSqqzxf4ZRPXwzWJirMicDa5KwiPeARygHXKNMQHEy3rMopDR20XNZGbJzUtrwDC/KshlLDWyqdmhxZzCsdYmf2fWZPoxCEDyfIvdtNQH0PRkH6Q51g8rFO3Qzxh2LbItcDCOpmuOsV7ntNaERe3v/lP/zO8yn4N+yNPrekmPAAAAAElFTkSuQmCC)",
  "priority":0,
  "extras": {
    "client::display": {
      "contentType": "text/markdown"
    }
  }
}'

gotify/android v2.0.10; gotify/server v2.0.15

@jmattheis
Copy link
Member

Good catch. I'll fix that.

@bhopmann
Copy link
Author

bhopmann commented May 3, 2020

Thank you for your reply and the quick fix - I'll try again as soon as it is merged and released.

@desbma
Copy link

desbma commented Mar 18, 2021

I does not seem to work on Android 11. Images are shown in server web UI, but not in the Android notifications or app.
I tried with JPEG and WEBP formats.

@jmattheis
Copy link
Member

@desbma open another issue for this with a message example to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants