+ 7

Which one is better ?

Which one is better ? To use a image url for eg: https://code.sololearn.com/WT5heiQKx6yf/# Or, To use image URI https://code.sololearn.com/WLh2G52PSi7e/#

7th Nov 2018, 4:18 AM
Googel
Googel - avatar
1 Odpowiedź
+ 7
In your second code, you are identifying the image as a resource in base64 encoding, which means that the image is accessible locally, by parsing the base64 character sequence into an image. Without more context into when and how you are going to use it, dictating which one is "better" is unfair. Take a look into why you may consider one over the other: https://www.davidbcalhoun.com/2011/when-to-base64-encode-images-and-when-not-to/
7th Nov 2018, 4:30 AM
Hatsy Rei
Hatsy Rei - avatar