In python, avatars.getInitiale() return Byte and not a URL. Now how should I store it into the collection? I have two options two store it, one is String other is URL and I don't know what to do with this Byte. How to convert it into a String or a URL whichever you prefer.
Summary
Developers initially queried about using Avatars.getInitials() method in their app but then got a satisfactory solution. The suggestion was to set the profile picture to null in the database and determine in the app if it's null to use Avatars or the Coil library. The URL format for obtaining initials was also shared. Finally, a query about storing the Byte returned by avatars.getInitials() in a collection was asked, and the developer wanted to know how to convert it into a String or URL for storage.
but again, I don't really think there is any problem calling this when needed its a very small request tbh
Shivam
Rank 2: Process
Jan 11, 2025, 16:46
So you are saying that I should set profile to null in database and check in app weather it is null or not.
If it is null then use Avatars else use Coil library??
Kenny
Jan 11, 2025, 16:47
I have no idea what coil library is or any context of your app, but if you're using the intials as a profile picture I don't see any harm in not saving the picture at all.
Shivam
Rank 2: Process
Jan 11, 2025, 16:50
No problem, your provided link works great.
Now I will handle it easily, whichever will be easy.