You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point, you will be able to see your newly created bucket and blob on the Google Developers Console.
108
109
109
110
#### Retrieving data
110
-
Now that we have content uploaded to the server, we can see how to read data from the server. Add the following import:
111
+
Now that we have content uploaded to the server, we can see how to read data from the server. Add the following line to your program to get back the blob we uploaded.
111
112
112
113
```java
113
-
importcom.google.gcloud.storage.Blob;
114
-
```
115
-
116
-
Then add the following lines to your program to get back the blob we uploaded.
If others have permission to edit the blob, then you may want to call `reload` to get a more up to date copy of the blob later in your program. The following snippet shows how to get a new Blob object containing updated information.
Suppose that you've added more buckets and blobs, and now you want to see the names of your buckets and the contents of each one. Add the following imports:
131
119
132
120
```java
133
-
importcom.google.gcloud.storage.Bucket;
134
-
135
121
importjava.util.Iterator;
136
122
```
137
123
@@ -146,11 +132,10 @@ while (bucketInfoIterator.hasNext()) {
0 commit comments