Check that a byte array is an image in golang

前端 未结 0 357
心在旅途
心在旅途 2020-12-01 01:40

I have a server endpoint in gin that receives an byte array.

func UploadImageHandler(c *gin.Context) {
    body, err := c.GetRawData()

    // how do I make s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题