Thanks to visit codestin.com Credit goes to libgit2.org
Close the stream and write the blob to the object db
The stream will be closed and freed.
the id of the new blob
the stream to close
0 or an error code