如何使用golang将图片上传到mongodb

Any ideas on how to upload picture files into Mongodb using Golang. I have done research and I can find lots of examples with many diiferent languages, but none for Go. Any links for blogs or tutorials would be great help. Thanks.

You may want to read some of the documentation on the mgo driver. Specifically under the gridfs section which covers how to store files in MongoDB. Examples are also available on the mgo website.

Also similar questions have been asked on stack already such as: Store Uploaded File in MongoDB GridFS Using mgo without Saving to Memory