public Form(Server server)
{
this.server = server;
}
// Затем используете
public void OnClickButton()
{
byte[] n = new byte[10];
this.server.Send(n);
this.server.Rec(n);
}
import os
import sys
from google.cloud import storage
# the location of the JSON file on your local machine
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/home/peter/backup/CREDENTIALS.json"
# project ID from the Developers Console
projectID = "cloud-project-id"
client = storage.Client(project = projectID)
bucket = client.get_bucket('db-backup')
blob2 = bucket.blob(sys.argv[1])
blob2.upload_from_filename(filename = '/home/peter/backup/' + sys.argv[1])