mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
fix thumbnail
This commit is contained in:
@@ -53,7 +53,7 @@ func (e *Thumbnail) Screenshot(ctx context.Context, req *thumbnail.ScreenshotReq
|
||||
base := base64.StdEncoding.EncodeToString(file)
|
||||
resp, err := e.imageService.Upload(ctx, &iproto.UploadRequest{
|
||||
Base64: "data:image/png;base64, " + base,
|
||||
ImageID: imageName,
|
||||
Name: imageName,
|
||||
}, client.WithDialTimeout(20*time.Second), client.WithRequestTimeout(20*time.Second))
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user