D
D
Dmitry2021-11-16 11:18:19
PHP
Dmitry, 2021-11-16 11:18:19

How to add your own avatars to site users through mysql in phpmyadmin?

Hello! I wanted to create a pwa application with a database in addition, but I stalled at the item with avatars. The fact is that the avatars should be edited by me, not by the user. I rummaged through the Internet, but did not really find the answer. I also read somewhere that a photo can be encoded and the encoded values ​​can be stored directly in the database, and in the pwa application these values ​​will look like a photo. In general, the point is that I could add my own photo to each user.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Akylbek Omar, 2021-11-16
@Aboba45849894855

This is not possible in mysql.

I
Immortal_pony, 2021-11-16
@Immortal_pony

To turn an image into a code, you can use online services. For example, here: https://www.base64-image.de/
Then this code can be put into the base

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question