# How to upload binary document in Java API

**URL:** <https://discuss.elastic.co/t/how-to-upload-binary-document-in-java-api/3918>\
**Category:** Elasticsearch\
**Created:** [February 12, 2011, 2:37pm UTC](https://discuss.elastic.co/t/how-to-upload-binary-document-in-java-api/3918 "2011-02-12T14:37:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![canal](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@canal](https://discuss.elastic.co/u/canal)\
**Post date:** [February 12, 2011, 2:37pm UTC](https://discuss.elastic.co/t/how-to-upload-binary-document-in-java-api/3918/1 "2011-02-12T14:37:33Z")

</div>

Hi,  
Newbie question - sorry if this is already answered.

Looking for more detailed Java doc for uploading binary document  
(mainly MS Office and PDF).  
I get the data from InputStream, how to pass to ES?

many thanks  
canal

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:12am UTC](https://discuss.elastic.co/t/how-to-upload-binary-document-in-java-api/3918/2 "2017-07-06T04:12:10Z")

</div>

Closed on July 6, 2017, 4:12am UTC


