func (img *Image) RetrieveVideo(buf *bytes.Buffer) {
	fname := strings.Join([]string{img.Handle, "webm"}, ".")
	fname = Repository.dataPath(img.Source, fname)
	if b, err := ioutil.ReadFile(fname); err != nil {
		panic(err)
	} else {
		if n, err := buf.Write(b); err != nil {
			panic(err)
		} else if n != len(b) {
			panic("partial write to memory buffer")
		}
	}
}
// RetrieveVideo fetches the bytes of the video for which the image is a still.
// Besides the usual errors, this will also error if the image is not a
// video-carrying Kind.
RetrieveVideo fetches the bytes of the video for which the image is a still.
Besides the usual errors, this will also error if the image is not a
video-carrying Kind.
// RetrieveVideo fetches the bytes of the video for which the image is a still . // Besides the usual errors this will also error if the image is not a // video - carrying Kind .
func (img *Image) RetrieveVideo(buf *bytes.Buffer) {
	fname := strings.Join([]string{img.Handle, "webm"}, ".")
	fname = Repository.dataPath(img.Source, fname)
	if b, err := ioutil.ReadFile(fname); err != nil {
		panic(err)
	} else {
		if n, err := buf.Write(b); err != nil {
			panic(err)
		} else if n != len(b) {
			panic("partial write to memory buffer")
		}
	}
}
func ( img * Image ) RetrieveVideo ( buf * bytes . Buffer ) { fname := strings . Join ( [ ] string { img . Handle , " " } , " " ) fname = Repository . dataPath ( img . Source , fname ) if b , err := ioutil . ReadFile ( fname ) ; err != nil { panic ( err ) } else { if n , err := buf . Write ( b ) ; err != nil { panic ( err ) } else if n != len ( b ) { panic ( " " ) } } }
RetrieveVideo fetches the bytes of the video for which the image is a still.
RetrieveVideo fetches the bytes of the video for which the image is a still .