# Binfhe serilalization error

**URL:** https://openfhe.discourse.group/t/binfhe-serilalization-error/1512
**Category:** Library Questions
**Created:** [August 26, 2024, 4:29am UTC](https://openfhe.discourse.group/t/binfhe-serilalization-error/1512 "2024-08-26T04:29:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pradeep508](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@pradeep508](https://openfhe.discourse.group/u/pradeep508)
#### Post date: [August 26, 2024, 4:29am UTC](https://openfhe.discourse.group/t/binfhe-serilalization-error/1512/1 "2024-08-26T04:29:05Z")

</div>

(base) user@user-HP-Z240-Tower-Workstation:~/openfhetesting/build$ ./boolfhe  
Generating keys.  
Done generating all keys.  
Error serializing the cryptocontext  
The above lines are output of running example, boolean-serial-binary.cpp. File path for serialisation is working for ckks examples(no issues with file path) and giving error for binfhe examples. we are running example as user application

---

<div class="post-metadata">

### Author: ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)
#### Post date: [September 4, 2024, 12:58pm UTC](https://openfhe.discourse.group/t/binfhe-serilalization-error/1512/2 "2024-09-04T12:58:42Z")

</div>

@pradeep508 According to the example code (line 41) you should have created a new directory in the directory where you are planning to run this particular example. The new directory name is “demoData”. You can always change it or provide the full path.
