Permalink
Browse files

Edited README.md via GitHub

  • Loading branch information...
thiagocaiubi committed Aug 26, 2011
1 parent 2a95fe7 commit c02a3a87ce8488f52df688e73acc90ca2e2488cf
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
@@ -20,6 +20,18 @@ Jravatar is a fluent Java library for accessing avatar images from gravatar.com
.withDefaultImage(GravatarDefaultImage.IDENTICON)
.getUrl("iHaveAn@email.com");
+### Get the image URL, force default gravatar image
+
+# Either regular or secure access, it builds the url with all the parameters. Gravatar will ignore all parameters and respond the default image.
+
+ String url = new Jravatar()
+ .withSecure()
+ .withSize(50)
+ .withRating(GravatarRating.GENERAL_AUDIENCES)
+ .withDefaultImage(GravatarDefaultImage.IDENTICON)
+ .forceDefault()
+ .getUrl("iHaveAn@email.com");
+
### Download image
byte[] jpg = new Jravatar()

0 comments on commit c02a3a8

Please sign in to comment.