# Send serialized object to DS server

**URL:** <https://datashield.discourse.group/t/send-serialized-object-to-ds-server/330>\
**Category:** Developer support\
**Created:** [11 December 2020 10:46 UTC](https://datashield.discourse.group/t/send-serialized-object-to-ds-server/330 "2020-12-11T10:46:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![xescriba](https://avatars.discourse-cdn.com/v4/letter/x/ee59a6/32.png) [@xescriba](https://datashield.discourse.group/u/xescriba)\
**Post date:** [11 December 2020 12:14 UTC](https://datashield.discourse.group/t/send-serialized-object-to-ds-server/330/3 "2020-12-11T12:14:56Z")

</div>

I found a way of achieving it, i’m not sure if it’s compromising though.

On the client:

```
cally <- paste0("prepare_dataset_treeDS(", data, ", '", sf::rawToHex(serialize(questions, NULL)), "')")
DSI::datashield.assign.expr(datasources, "tree_data", as.symbol(cally))

```

On the server:

```
questions <- unserialize(wkb::hex2raw(questions))

```

This passes successfully a serialized object.

---

_[View the full topic](https://datashield.discourse.group/t/send-serialized-object-to-ds-server/330)._
