<commit_before># Vinci Library

![Alt text](https://jitpack.io/v/abbashosseini/Vinci.svg)
>Vinci android library for get url and  save it Or Display the Photo From  DB

### About VinCi :

its android library its get _URL_ and _download_ **image** also save it in _database_ and you can retrieve image form database .

#### Note :

  testedjust on  one app for now, and its was part of my app i decided to put in here maybe was helpful .

#### this library good for: 

This library good for thats applications have online communication with server all the time for offline mod need put some server side into in user device. 

####For Reading :

Example :

```java
  //Get photo from Database
  byte[] ByteImage = cursor.getBlob(cursor.getColumnIndex(ColumnsName.IMAGE))
```
and now you can display your **Photo** in ImageView/CustomImageView _(RoundedImage/HexagonImage)_ like this :

```java
  // Thats it
  new Vinci(context).PhotoFromDB(ByteImage)
  //and use it like this  - setImageDrawable :<commit_msg>add concurrent Lib to it.<commit_after># Vinci Library

![Alt text](https://jitpack.io/v/abbashosseini/Vinci.svg)
>Vinci android library for get url and  save it Or Display the Photo From  DB

### About VinCi :

its android library its get _URL_ and _download_ **image** also save it in _database_ and you can retrieve image form database i try make it simple to _work_ with **drawable and Bitmap** for example Work with this Objects is hard in **PICASSO** Library and VinCi not try to say saving your Images in database is *good practice* _NO_ at all this usrful for some app like mine save user profile in he's device for what :

* easy way to Handle user
* no need for RESTful Request to read everyTime (caching not solution for me Sorry)
* **Important** handle user activity when is not Connected or user in (**OfflineMod**) when he connected you can notice what he change and you wanna allow or not.....

i'm adding these futurs SOON but for now just wanna say what is **IDEA** Vinci Have.



#### Note :

  tested just on  one app for now, and its was part of my app i decided to put in here maybe was helpful .
  and feel free please add **issues** .

#### this library good for: 

This library good for thats applications have online communication with server all the time for offline mod need put some server side into in user device. 

####For Reading :

Example :

```java
  //Get photo from Database
  byte[] ByteImage = cursor.getBlob(cursor.getColumnIndex(ColumnsName.IMAGE))
```
and now you can display your **Photo** in ImageView/CustomImageView _(RoundedImage/HexagonImage)_ like this :

```java
  // Thats it
  new Vinci(context).PhotoFromDB(ByteImage)
  //and use it like this  - setImageDrawable :
{'fraction_non_alphanumeric': 0.07963302752293577, 'fraction_numerical': 0.0, 'mean_word_length': 4.07635009310987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2382198', 'n_tokens_mistral': 774, 'n_tokens_neox': 745, 'n_words': 389}