【问题标题】:How to save canvas image in to database? [duplicate]如何将画布图像保存到数据库中? [复制]
【发布时间】:2021-09-27 16:45:57
【问题描述】:

我确实将图像插入到画布中。现在我需要将该图像上传到数据库中,任何人都可以帮助我。 这是我的画布代码,

here is the code

enter code here

【问题讨论】:

  • 您好,以下是您回答的一些准则:请不要将您的代码发布为图像,而是以文本的形式发布。 Here is why you should not post your code as an image
  • 对上面的评论哎呀,我的意思是说这里有一些关于你的问题的指导方针

标签: javascript php mysql html5-canvas


【解决方案1】:

使用 Blob 数据类型将图像保存在数据库中。您可以使用 imagecreatefromjpeg() 之类的代码或其他代码轻松转换图像。

【讨论】:

    猜你喜欢
    • 2017-04-22
    • 1970-01-01
    • 2014-08-25
    • 2018-05-23
    • 2015-08-16
    • 2013-02-14
    • 1970-01-01
    • 2011-11-05
    • 2023-04-04
    相关资源
    最近更新 更多