# Deserializing objects sent from a client program to a server program

**URL:** <https://discourse.processing.org/t/deserializing-objects-sent-from-a-client-program-to-a-server-program/16124>\
**Category:** Libraries\
**Created:** [December 4, 2019, 8:44pm UTC](https://discourse.processing.org/t/deserializing-objects-sent-from-a-client-program-to-a-server-program/16124 "2019-12-04T20:44:21Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![creepercrack](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Post date:** [December 28, 2019, 8:25pm UTC](https://discourse.processing.org/t/deserializing-objects-sent-from-a-client-program-to-a-server-program/16124/9 "2019-12-28T20:25:39Z")

</div>

> [@GoToLoop](#):
>

Yes, your sketch works but because it is serializing and deserializing whithin the same scketch and thus class  
But what I’m having problems with is having 2 programs talking to each other (deserializing the data recived), the rest is good  
But when I try to deserialize java complains because the classes are different even tough they share the same source code

I tried using `.java` files to make processing make the class without the `.pde` so it would give me `ImagenSerializable` and not `NCliente$ImagenSerializable` but I can’t get it to work

Sorry if I didn’t explain my problem properly  
Thank you for your help

---

_[View the full topic](https://discourse.processing.org/t/deserializing-objects-sent-from-a-client-program-to-a-server-program/16124)._
