# Can I do this with Kotlin?

**URL:** <https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504>\
**Category:** Native\
**Created:** [July 10, 2018, 6:46am UTC](https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504 "2018-07-10T06:46:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvix](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@marvix](https://discuss.kotlinlang.org/u/marvix)\
**Post date:** [July 10, 2018, 6:46am UTC](https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504/1 "2018-07-10T06:46:58Z")

</div>

Hi,

I’m working on my university graduation project, and this all new for me. The app simple idea is to take details of a person and take a photo of the person.

I have a good background in PHP, I made the APIs with Yii2. The APIs models are person, photo, and info. The person model is to store the data in person table, and the photo is to store the photo name and date in the photo table, and the info is to relate the photos to one person.

Now, in the app, I need to store the whole data with photo and then send it to the server, is that possible?

Thanks,

---

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [July 10, 2018, 8:37am UTC](https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504/2 "2018-07-10T08:37:32Z")

</div>

Yes. If you look for information on how to do any of those specific tasks, I would google for solutions in java instead. You can simply use the java libraries and use them in Kotlin.

---

<div class="post-metadata">

**Author:** ![marvix](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@marvix](https://discuss.kotlinlang.org/u/marvix)\
**Post date:** [July 10, 2018, 10:26am UTC](https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504/3 "2018-07-10T10:26:18Z")

</div>

I see, then I should do the whole app with java?

---

<div class="post-metadata">

**Author:** ![Jonathan.Haas](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@Jonathan.Haas](https://discuss.kotlinlang.org/u/Jonathan.Haas)\
**Post date:** [July 10, 2018, 10:45am UTC](https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504/4 "2018-07-10T10:45:29Z")

</div>

You could (and probably should) use Kotlin on the Java Virtual Machine, if that’s what you’re asking. It wouldn’t be Kotlin Native, which is still more experimental.

Of course you could also write the app just with plain Java, but then you’re wrong here in the Kotlin forum.

---

<div class="post-metadata">

**Author:** ![nemo](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nemo](https://discuss.kotlinlang.org/u/nemo)\
**Post date:** [July 11, 2018, 9:57am UTC](https://discuss.kotlinlang.org/t/can-i-do-this-with-kotlin/8504/5 "2018-07-11T09:57:09Z")

</div>

It’s OK, You can use Realm DB for offline db in client apps, after read and write to inside it and than query and push to server with your API that you are using. You can use this database in both , Java and Kotlin
