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
Copy file name to clipboardExpand all lines: README.md
+54-31Lines changed: 54 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,13 @@ For Java, Cloudinary provides a library for simplifying the integration even fur
25
25
26
26
The cloudinary_java library is available in [Maven Central](https://repo1.maven.org/maven2/com/cloudinary/). To use it, add the following dependency to your pom.xml :
27
27
28
-
<dependency>
29
-
<groupId>com.cloudinary</groupId>
30
-
<artifactId>cloudinary-http44</artifactId>
31
-
<version>1.13.0</version>
32
-
</dependency>
28
+
```xml
29
+
<dependency>
30
+
<groupId>com.cloudinary</groupId>
31
+
<artifactId>cloudinary-http44</artifactId>
32
+
<version>1.13.0</version>
33
+
</dependency>
34
+
```
33
35
34
36
Alternatively, download cloudinary_java from [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-core/1.13.0/cloudinary-core-1.13.0.jar) and [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-http44/1.13.0/cloudinary-http44-1.13.0.jar)
35
37
and see [pom.xml](https://github.com/cloudinary/cloudinary_java/blob/master/cloudinary-http44/pom.xml) for library dependencies.
@@ -80,16 +82,19 @@ Setting the `cloud_name`, `api_key` and `api_secret` parameters can be done eith
80
82
by when initializing the Cloudinary object, or by using the CLOUDINARY_URL environment variable / system property.
81
83
82
84
The entry point of the library is the Cloudinary object.
83
-
84
-
Cloudinary cloudinary = new Cloudinary();
85
+
```java
86
+
Cloudinary cloudinary =newCloudinary();
87
+
```
85
88
86
89
Here's an example of setting the configuration parameters programatically:
**See [our documentation](http://cloudinary.com/documentation/java_image_manipulation) for more information about displaying and transforming images in Java**.
121
134
@@ -124,22 +137,28 @@ Same goes for Twitter:
124
137
Assuming you have your Cloudinary configuration parameters defined (`cloud_name`, `api_key`, `api_secret`), uploading to Cloudinary is very simple.
125
138
126
139
The following example uploads a local JPG to the cloud:
**See [our documentation](http://cloudinary.com/documentation/java_image_upload) for plenty more options of uploading to the cloud from your Java code**.
145
164
@@ -149,19 +168,23 @@ Returns an html image tag pointing to Cloudinary.
Returns an html input field for direct image upload, to be used in conjunction with [cloudinary\_js package](https://github.com/cloudinary/cloudinary_js/). It integrates [jQuery-File-Upload widget](https://github.com/blueimp/jQuery-File-Upload) and provides all the necessary parameters for a direct upload.
String html = cloudinary.uploader().imageUploadTag("image_id", options, htmlOptions);
187
+
```
165
188
166
189
**See [our documentation](http://cloudinary.com/documentation/java_image_upload#direct_uploading_from_the_browser) for plenty more options of uploading directly from the browser**.
0 commit comments