In the web version of the multi-person chat room, the data is generated into pictures and pushed to the chat room in the format of pictures.

in the web version of the multi-person chat room, after getting the data, I want to generate a picture of the data and display it in the chat room in the format of the picture. Do you have any examples or ideas that the great god knows how to do for reference? thank you!

Aug.14,2021

Canvas output base64, is then populated into the src of the img element (new).


the Canvas output base64, is then populated into the src of the img element (new).

lx panda mulberry's suggestion is not bad

there is another idea: the data can not be transferred to the front end, and the back end can generate img,push directly to the front end, so that the data does not have to go to the front end

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2260f-2b629.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2260f-2b629.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?