# How do I deploy wasm file as canister

**URL:** <https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360>\
**Category:** Language Support\
**Tags:** Wasm\
**Created:** [June 19, 2021, 11:26pm UTC](https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360 "2021-06-19T23:26:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)\
**Post date:** [June 19, 2021, 11:26pm UTC](https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360/1 "2021-06-19T23:26:22Z")

</div>

I have a wasm file generated. Outside the dfx build and I want to create a canister using that wasm build is that possible ?

Thanks

---

<div class="post-metadata">

**Author:** ![claudio](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/claudio/32/322_2.png) [@claudio](https://forum.dfinity.org/u/claudio)\
**Post date:** [June 20, 2021, 1:46pm UTC](https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360/2 "2021-06-20T13:46:40Z")

</div>

I think there’s probably a more direct way now, but this example did something similar for wasm generated from C

> **[dfinity/examples](https://github.com/dfinity/examples/tree/master/c/reverse)**
>
> master/c/reverse

Might have bit rotted though.

---

<div class="post-metadata">

**Author:** ![claudio](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/claudio/32/322_2.png) [@claudio](https://forum.dfinity.org/u/claudio)\
**Post date:** [June 20, 2021, 2:00pm UTC](https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360/3 "2021-06-20T14:00:42Z")

</div>

A more recent technique is described here [https://ffgig-jyaaa-aaaae-aaaoa-cai.raw.ic0.app/](https://ffgig-jyaaa-aaaae-aaaoa-cai.raw.ic0.app/)

---

<div class="post-metadata">

**Author:** ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)\
**Post date:** [June 21, 2021, 4:53pm UTC](https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360/4 "2021-06-21T16:53:24Z")

</div>

Thank you claudio !  
I will try them, in similar way can we do java to wasm and write idl and deploy as canister ?

---

<div class="post-metadata">

**Author:** ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)\
**Post date:** [June 21, 2021, 5:22pm UTC](https://forum.dfinity.org/t/how-do-i-deploy-wasm-file-as-canister/5360/5 "2021-06-21T17:22:16Z")

</div>

echo \> reverse.did

{“canisters”:{“reverse”:{  
“type”:“custom”,  
“candid”:“reverse.did”,  
“wasm”:“reverse.wasm”,  
“build”:""  
}}  
}

dfx deploy

dfx canister call reverse go ‘(“repaid”)’

(“diaper”)

❤
