# Attachment is type is not available in Java API?

**URL:** <https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981>\
**Category:** Elasticsearch\
**Created:** [February 25, 2011, 2:05pm UTC](https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981 "2011-02-25T14:05:54Z")\
**Posts on this page:** 5\
**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 25, 2011, 2:05pm UTC](https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981/1 "2011-02-25T14:05:54Z")

</div>

Hello,  
Just wanted to confirm if the attachment type is not supported in Java API  
right?

So in order to post attachment, I should use HTTP since I can use all the APIs ?  
thanks,  
canal

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [February 25, 2011, 2:20pm UTC](https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981/2 "2011-02-25T14:20:58Z")

</div>

Hi,

did you check SimpleAttachmentIntegrationTests for Java API example?

Regards,  
Lukas

On Fri, Feb 25, 2011 at 3:05 PM, go canal [gocanal@yahoo.com](mailto:gocanal@yahoo.com) wrote:

> Hello,  
> Just wanted to confirm if the attachment type is not supported in Java API  
> right?
> 
> So in order to post attachment, I should use HTTP since I can use all the  
> APIs ?
> 
> thanks,  
> canal

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 25, 2011, 7:56pm UTC](https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981/3 "2011-02-25T19:56:26Z")

</div>

Just to clarify things, the REST API is completely built on top of the Java API, so anything that is supported by REST is supported in the Java API.  
On Friday, February 25, 2011 at 4:20 PM, LukÃ¡Å¡ VlÄek wrote:

> Hi,
> 
> did you check SimpleAttachmentIntegrationTests for Java API example?
> 
> Regards,  
> Lukas
> 
> On Fri, Feb 25, 2011 at 3:05 PM, go canal [gocanal@yahoo.com](mailto:gocanal@yahoo.com) wrote:
> 
> > Hello,  
> > Just wanted to confirm if the attachment type is not supported in Java API right?
> > 
> > So in order to post attachment, I should use HTTP since I can use all the APIs ?  
> > thanks,  
> > canal

---

<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 26, 2011, 1:39am UTC](https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981/4 "2011-02-26T01:39:26Z")

</div>

Thank you very much, have been looking for the solution for a while.

Now I downloaded the source and looking at it...  
thanks,  
canal

* * *

From: Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)  
To: [users@elasticsearch.com](mailto:users@elasticsearch.com)  
Sent: Fri, February 25, 2011 10:20:58 PM  
Subject: Re: attachment is type is not available in Java API?

Hi,

did you check SimpleAttachmentIntegrationTests for Java API example?

Regards,  
Lukas

On Fri, Feb 25, 2011 at 3:05 PM, go canal [gocanal@yahoo.com](mailto:gocanal@yahoo.com) wrote:

Hello,

> Just wanted to confirm if the attachment type is not supported in Java API  
> right?
> 
> So in order to post attachment, I should use HTTP since I can use all the APIs  
> ?  
> 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:11am UTC](https://discuss.elastic.co/t/attachment-is-type-is-not-available-in-java-api/3981/5 "2017-07-06T04:11:22Z")

</div>

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


