Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksanford committed Nov 18, 2024
1 parent 501209a commit c37ed4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/camera/collectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,17 @@ func newReadImageCollector(resource interface{}, params data.CollectorParams) (d
if err != nil {
return res, err
}

actualOutMIME, _ := utils.CheckLazyMIMEType(mimeStr.Value)
mimeType := data.CameraFormatToMimeType(utils.MimeTypeToFormat[actualOutMIME])
// TODO (Nick S): Add MimeType
ts := data.Timestamps{
TimeRequested: timeRequested,
TimeReceived: time.Now(),
}
return data.NewBinaryCaptureResult(ts, []data.Binary{{
Payload: outBytes,
MimeType: mimeType,
Payload: outBytes,
}}), nil
})
return data.NewCollector(cFunc, params)
Expand Down

0 comments on commit c37ed4d

Please sign in to comment.