I have built an image extractor based on the sample code in the GO SDK samples and it output the images to file but I need them as []byte so that I can upload them to a Google Storage Bucket. Following some other similar questions in other languages, I have the following code but I am stuck trying to get that last step to get the data in a []byte.
The answer to a similar question in the forum said to use a FilterReader to output it in the format needed but I can’t find any function of Filter Reader that give me the Byte data.