Skip to content

Commit 1693eca

Browse files
committed
Update README. Fixes #28
1 parent 32f6289 commit 1693eca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloudinary-android/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Assuming you have your Cloudinary configuration parameters defined (`cloud_name`
128128

129129
The following example uploads a local JPG available as an InputStream to the cloud:
130130

131-
cloudinary.uploader().upload(inputStream, Cloudinary.emptyMap())
131+
cloudinary.uploader().upload(inputStream, ObjectUtils.emptyMap())
132132

133133
The uploaded image is assigned a randomly generated public ID. The image is immediately available for download through a CDN:
134134

@@ -138,7 +138,7 @@ The uploaded image is assigned a randomly generated public ID. The image is imme
138138

139139
You can also specify your own public ID:
140140

141-
cloudinary.uploader().upload("http://www.example.com/image.jpg", Cloudinary.asMap("public_id", "sample_remote"))
141+
cloudinary.uploader().upload("http://www.example.com/image.jpg", ObjectUtils.asMap("public_id", "sample_remote"))
142142

143143
cloudinary.url().generate("sample_remote.jpg")
144144

@@ -172,7 +172,7 @@ Your server can use any Cloudinary libraries (Ruby on Rails, PHP, Python & Djang
172172

173173
The following code uploads an image to Cloudinary with the parameters generated safely on the server side (e.g., from a JSON as in the example above):
174174

175-
cloudinary.uploader().upload(inputStream, Cloudinary.asMap("public_id", publicId, "signature", signature, "timestamp", timestamp, "api_key", api_key))
175+
cloudinary.uploader().upload(inputStream, ObjectUtils.asMap("public_id", publicId, "signature", signature, "timestamp", timestamp, "api_key", api_key))
176176

177177
You might want to reference uploaded Cloudinary images and raw files using an identifier string of the following format:
178178

0 commit comments

Comments
 (0)