# RDFFormat fou add file to stardog in Java

**URL:** <https://community.stardog.com/t/rdfformat-fou-add-file-to-stardog-in-java/1859>\
**Category:** Support\
**Created:** [August 28, 2019, 4:22pm UTC](https://community.stardog.com/t/rdfformat-fou-add-file-to-stardog-in-java/1859 "2019-08-28T16:22:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![witchBioinformatics](https://avatars.discourse-cdn.com/v4/letter/w/71e660/32.png) [@witchBioinformatics](https://community.stardog.com/u/witchBioinformatics)\
**Post date:** [August 28, 2019, 4:22pm UTC](https://community.stardog.com/t/rdfformat-fou-add-file-to-stardog-in-java/1859/1 "2019-08-28T16:22:41Z")

</div>

Second question because i update my program for use Stardog 7

I have an error when i write my code to add a file to stardog database

> starDogConnection.add().io().format().stream(new FileInputStream(path));

I don't understand which value i have to put in format() ?

> RDFFormat.BinaryRDFFormat give me an error : RDFFormat.BinaryRDFFormat cannot be resolved to a variable

Same for RDFFormat

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [September 11, 2019, 4:26pm UTC](https://community.stardog.com/t/rdfformat-fou-add-file-to-stardog-in-java/1859/2 "2019-09-11T16:26:27Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
