# Write canvas in Client and send to Server (Array of point)?

**URL:** <https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179>\
**Category:** Processing\
**Tags:** homework\
**Created:** [February 15, 2022, 11:25am UTC](https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179 "2022-02-15T11:25:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Stefano](https://discourse.processing.org/u/Stefano)\
**Post date:** [February 15, 2022, 11:25am UTC](https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179/1 "2022-02-15T11:25:34Z")

</div>

Hi everyone. I have a problem. I can’t send matrix of point ( write canvas) and after that i finish to write a canvas (for example with a button???) I want the server to get the dot array.  
I have saw Example 2: Shared drawing canvas on Processing site but i don’t know how do.

Thanks so much everyone that can help me.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 15, 2022, 11:39am UTC](https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179/2 "2022-02-15T11:39:10Z")

</div>

Hello,

The Processing examples (in the _File_ menu) for _SharedCanvasClient_ and _SharedCanvasServer_ work:

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2b03127de4affd6868e6ef12d4015779325e207b.png)

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/494f550a904e58b4d8d728bb71c422c2ef8026cb.png)

Start the server first and then the client.

Start with simple modifications to the examples and build on that.

There are resources here:

- [https://processing.org/](https://processing.org/)
- [Network / Libraries / Processing.org](https://processing.org/reference/libraries/net/index.html)
- [Network / Processing.org](https://processing.org/tutorials/network)

`:)`

---

<div class="post-metadata">

**Author:** ![Stefano](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Stefano](https://discourse.processing.org/u/Stefano)\
**Post date:** [February 15, 2022, 12:02pm UTC](https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179/3 "2022-02-15T12:02:43Z")

</div>

I have tried but I’m a begginer and i don’t know which functions use.  
For example i don’t need a continued communication but first of all i want write a canvas after click on a button and finally send all to server.
