mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
parent
cafa3ceed0
commit
accf0a2c63
1 changed files with 5 additions and 3 deletions
|
@ -114,8 +114,10 @@ func (p *Provider) generateDiagram(ctx *provider.Context, data string) string {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
png, _ := ioutil.ReadAll(resp.Body)
|
img, _ := ioutil.ReadAll(resp.Body)
|
||||||
pngEncoded := base64.StdEncoding.EncodeToString(png)
|
enc := base64.StdEncoding.EncodeToString(img)
|
||||||
|
|
||||||
return string(fmt.Sprintf("data:image/png;base64,%s", pngEncoded))
|
// return string(fmt.Sprintf("data:image/png;base64,%s", enc))
|
||||||
|
|
||||||
|
return string(fmt.Sprintf("data:image/svg+xml;base64,%s", enc))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue