× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Step 1: Open Visual Studio and start a new C# .net project
Step 2: Install the Google storage nuget package. https://cloud.google.com/dotnet/
Step 3: Create the following code snippet in your project to upload a sample image:

Var _storageClient = StorageClient.Create();
var imageObject = await _storageClient.UploadObjectAsync(
bucket: _bucketName,
objectName: id.ToString(),
contentType: image.ContentType,
source: image.InputStream,
options: new UploadObjectOptions { PredefinedAcl = imageAcl }
);

Full example for Step #3 here: https://cloud.google.com/dotnet/docs/getting-started/using-cloud-storage

Should be able to put together a POC in an hour or less. Or you can just download their Bookshelf sample application which has a full example solution already built for you.

-----Original Message-----
From: James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
Sent: Thursday, November 8, 2018 10:52 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Uploading from IFS to Google Storage -- anybody know an easy way?

Would anybody happen to know of an easy way to upload stream files (or preferably entire folders) from the IFS to a Google Storage bucket?

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.