Ecole-Directe-Plus icon indicating copy to clipboard operation
Ecole-Directe-Plus copied to clipboard

Access the profile photo without using the proxy

Open OeildeLynx31 opened this issue 1 year ago • 3 comments

We should make a request to get the image data instead of just using it from it URL. How to process =>

  • fetch [photoURL] to have the image as dataURI
  • replace the photoURL by the dataURI URL. => It will do a thing like <img src="data:image/jpg;base64,...">

OeildeLynx31 avatar Jul 31 '24 14:07 OeildeLynx31

I think I am able to do this

OeildeLynx31 avatar Jul 31 '24 14:07 OeildeLynx31

But what is the difference with just putting URL ? Would it allow us to use edpu extension ?

saumon-brule avatar Aug 07 '24 06:08 saumon-brule

It will make a request using the EDPU extension, so no need of the proxy.

OeildeLynx31 avatar Aug 08 '24 05:08 OeildeLynx31