[英]How send SVG-element to NodeJS server
我需要將 SVG 元素發送到服務器,然后在文件夾中重寫 SVG 文件。 但我不明白如何在 request.body 中獲取元素,它的“未定義”。
這是我的收獲
嗯,我找到了答案。 在將其發送到服務器之前,您需要將 svg-element 轉換為 base64 。
在服務器上,您需要從 request.body 創建緩沖區,然后將其轉換為字符串
[英]How to apply ResizeObserver to SVG-Element?
[英]Convert svg-element to image
[英]How to change color of svg-element back and fourth by clicking?
[英]How to target the svg-element created by a Lottie animation?
[英]Adjust size of an SVG-element to its content
[英]JS with SVG: Rotate SVG-Element around its center
[英]How to alter SVG-element on a web-page with contebnt from a new file?
[英]Change string (text-element) in svg-element
[英]Can I add a mask to an svg-element without using an id?
[英]how to send svg to php (server side)?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.