# Fscrawler save binary , base64

**URL:** <https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696>\
**Category:** Elasticsearch\
**Created:** [March 20, 2018, 7:14am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696 "2018-03-20T07:14:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yimjunhyeok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yimjunhyeok/32/19052_2.png) [@Yimjunhyeok](https://discuss.elastic.co/u/Yimjunhyeok)\
**Post date:** [March 20, 2018, 7:14am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/1 "2018-03-20T07:14:59Z")

</div>

Hello.

I want to save file binary with fscrawler without extract file contents.

But when i set the "indexed\_chars" : "1000", Can't save file binary fully (More than 70MB)

it is also same when i set the "indexed\_chars" : "1000".

I want to save only binary with "attachment" field.

who knows the solutions?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 20, 2018, 7:36am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/2 "2018-03-20T07:36:33Z")

</div>

Where do you want to save it? In elasticsearch?

That is not recommended to store blobs in elasticsearch. I wonder why would you want to do it, specifically if you don't want to index its content.

But you can use:

- [https://github.com/dadoonet/fscrawler/blob/master/README.md#storing-binary-source-document-base64-encoded](https://github.com/dadoonet/fscrawler/blob/master/README.md#storing-binary-source-document-base64-encoded)
- [https://github.com/dadoonet/fscrawler/blob/master/README.md#ignore-content](https://github.com/dadoonet/fscrawler/blob/master/README.md#ignore-content)

In the future I'd also like to implement this feature which might help to solve your use case:

> <https://github.com/dadoonet/fscrawler/issues/334>

---

<div class="post-metadata">

**Author:** ![Yimjunhyeok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yimjunhyeok/32/19052_2.png) [@Yimjunhyeok](https://discuss.elastic.co/u/Yimjunhyeok)\
**Post date:** [March 20, 2018, 8:32am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/3 "2018-03-20T08:32:19Z")

</div>

Thanks for your reply.  
Based on your 2 things,  
"store\_source" : true && "index\_content" : false

==\> Not store the source....

"Index\_content" have to "true" when store source..

But i want to set the "index\_content" : false

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 20, 2018, 8:57am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/4 "2018-03-20T08:57:56Z")

</div>

> Not store the source....

What do you mean? What is a typical document look like when you are using this option?

---

<div class="post-metadata">

**Author:** ![Yimjunhyeok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yimjunhyeok/32/19052_2.png) [@Yimjunhyeok](https://discuss.elastic.co/u/Yimjunhyeok)\
**Post date:** [March 21, 2018, 1:19am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/5 "2018-03-21T01:19:53Z")

</div>

For example, word or excel files.

conf ==\>  
"store\_source" : true  
"index\_content" : true  
"indexed\_chars" : "-1"

==\> Successfully save the binary attachment.

"store\_source" : true  
"index\_content" : false  
"indexed\_chars" : "-1"

==\> Not save the binary attachment.

Actually i want to save the binary attachment without text extraction.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 21, 2018, 3:45am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/6 "2018-03-21T03:45:50Z")

</div>

I see. It's a bug.

Could you open an issue?

---

<div class="post-metadata">

**Author:** ![Yimjunhyeok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yimjunhyeok/32/19052_2.png) [@Yimjunhyeok](https://discuss.elastic.co/u/Yimjunhyeok)\
**Post date:** [March 21, 2018, 4:24am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/7 "2018-03-21T04:24:07Z")

</div>

OK. Thanks for your reply !.

---

<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:** [April 18, 2018, 4:24am UTC](https://discuss.elastic.co/t/fscrawler-save-binary-base64/124696/8 "2018-04-18T04:24:24Z")

</div>

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