Jump to content
  • 0

Displaying guild emblems on the webpage.


lionheart

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   0
  • Joined:  12/30/13
  • Last Seen:  

- REMOVED  -

Edited by lionheart
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  420
  • Reputation:   89
  • Joined:  01/30/12
  • Last Seen:  

I guess the guild emplem (blob) field stores the emblem in base64. So simply read it into a base 64 <img> tag.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   0
  • Joined:  12/30/13
  • Last Seen:  

Hmmm. I did used base64_encode on <img> tag but the emblem still doesn't show.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  420
  • Reputation:   89
  • Joined:  01/30/12
  • Last Seen:  

I'll check our cp :D

 

/+

geez O.o nevermind. We read it bit by bit, but I can't understand the function on my phone.. I'll check it when I get home.

 

My first guess is that it is stored as a bitmap and you have to create a new image object in php, read the bits into it, then base 64 encode the result (or save as an actual image somewhere) and use it afterwards.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...