[Solved] image in signature in forum, not working

AnandGupta

Expert
Licensed User
Longtime User
I am trying to put my image in my signature in the forum, but getting error,

firefox_xWYnx7KSXC.png

This is the direct download link from gdrive,
B4X:
https://drive.google.com/uc?export=download&id=1zWsuewGfV-vpRAZZQ4PkQkme9junI4QU

the link is working in browser.

how to fix it ?
 

Sandman

Expert
Licensed User
Longtime User
The image downloads because it's being served with this header:
B4X:
content-disposition: attachment; filename="apps_icons.png"

I imagine Google made it like that to avoid exactly what @AnandGupta tries to do. They clearly don't want people to use their servers as remote image storage, eating bandwidth and resources for no actual Google benefit.

how to fix it ?
Realistically? Nothing much, change provider.

By over-engineering it? Setup your own proxy that requests the image from Google and then serves the image to the forum without that header. (But it would a lot easier to just serve your image from the proxy server :) )
 

AnandGupta

Expert
Licensed User
Longtime User
Thanks for the guide.

I added the image in my g.website and got the link of it as,
B4X:
https://lh4.googleusercontent.com/kgJlBN9pSrqk7TMcb5OrI5QlX7Ic9BbMF49tnprnBdYV-t9PnzZEZOiKd2II-n2NU9e69MYYzha3CPz20yCfDnpU-mc7tdjNBGORRsEorBo0cVjxcO14vFkmD9PKMOGXQA=w1280

It shows OK in profile signature
firefox_t3V2offf93.png

but shows X in message signature line.
firefox_q3Eb9b5AWH.png

Now whats the problem? How to fix this ?
 

Sandman

Expert
Licensed User
Longtime User
In that case, your image is also available on this address, so no need to struggle with Google.
B4X:
https://www.b4x.com/android/forum/attachments/1731998089963-png.158765/
 

AnandGupta

Expert
Licensed User
Longtime User
In that case, your image is also available on this address, so no need to struggle with Google.
B4X:
https://www.b4x.com/android/forum/attachments/1731998089963-png.158765/
I see, how you got it, thanks
 
Top