+ 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/#
1 Réponse
+ 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/