def store_file(file_content, filename, type=:file)
      store(type => Base64.encode64(file_content), :filename => filename)
    end
def store_file(file_content, filename, type=:file)
      store(type => Base64.encode64(file_content), :filename => filename)
    end
Store a file in SAM. If the file will be used by other NSI's service
 you should pass an additional 'type' parameter.

 @param [Object] file_content json serializable object
 @param [Symbol] type of the file to be stored. Can be either :doc and :video.
 @return [Response] object with access to the key and the sha512 checkum of the stored data

 @raise [NSISam::Errors::Client::AuthenticationError] when user and password doesn't match

 @example
   nsisam.store_file(File.read("foo.txt"))
   nsisam.store_file(File.read("foo.txt"), :video)