# What should I do for the Wolfram Engine not to reply all Array data? (#LLU #WSTP)

**URL:** <https://community.wolfram.com/t/what-should-i-do-for-the-wolfram-engine-not-to-reply-all-array-data-llu-wstp/23262>\
**Category:** Questions\
**Tags:** external-interfaces, wolfram-engine\
**Created:** [December 18, 2023, 11:16am UTC](https://community.wolfram.com/t/what-should-i-do-for-the-wolfram-engine-not-to-reply-all-array-data-llu-wstp/23262 "2023-12-18T11:16:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartroos](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@bartroos](https://community.wolfram.com/u/bartroos)\
**Post date:** [December 18, 2023, 11:16am UTC](https://community.wolfram.com/t/what-should-i-do-for-the-wolfram-engine-not-to-reply-all-array-data-llu-wstp/23262/1 "2023-12-18T11:16:38Z")

</div>

I’m trying to create a program that sends an image to the Wolfram Engine. Let the Wolfram Engine do some image processing and return the result to the c++ programm. I’m using the following command to set the variable “test” with image data in an array:

```
*pStreamObject << LLU::WS::Function("EnterExpressionPacket", 1) << LLU::WS::Function("Short", 2) << LLU::WS::Function("Set", 2) << LLU::WS::Symbol("test") << arrayData << "10";

```

This is the reply from the Wolfram Engine:

```
12:09:29: ==== Stack nesting level ===== : 1 NrOfArguments 0
12:09:29: Function Head : OutputNamePacket Nr. of arguments : 1
12:09:29: ==== Stack nesting level ===== : 2 NrOfArguments 1
12:09:29: String : Out[1]//Short= 
12:09:29: ==== Stack nesting level ===== : 1
12:09:29: ==== Stack nesting level ===== : 0
12:09:29: ==== Stack nesting level ===== : 1 NrOfArguments 0
12:09:29: Function Head : ReturnExpressionPacket Nr. of arguments : 1
12:09:29: ==== Stack nesting level ===== : 2 NrOfArguments 1
12:09:29: Function Head : Short Nr. of arguments : 2
12:09:29: ==== Stack nesting level ===== : 3 NrOfArguments 2
12:09:29: Function Head : Automatic Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 4 NrOfArguments 3
12:09:29: Function Head : List Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 5 NrOfArguments 3
12:09:29: Integer : 88
12:09:29: Integer : 88
12:09:29: Integer : 88
12:09:29: ==== Stack nesting level ===== : 4
12:09:29: Function Head : List Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 5 NrOfArguments 3
12:09:29: Integer : 89
12:09:29: Integer : 87
12:09:29: Integer : 86
12:09:29: ==== Stack nesting level ===== : 4
12:09:29: Function Head : List Nr. of arguments : 3
12:09:29: ==== Stack nesting level ===== : 5 NrOfArguments 3
12:09:29: Integer : 86
12:09:29: Integer : 85
12:09:29: Integer : 83
12:09:29: ==== Stack nesting level ===== : 4
12:09:29: ==== Stack nesting level ===== : 3
12:09:29: String : 10
12:09:29: ==== Stack nesting level ===== : 2
12:09:29: ==== Stack nesting level ===== : 1
12:09:29: ==== Stack nesting level ===== : 0
12:09:29: ==== Stack nesting level ===== : 1 NrOfArguments 0
12:09:29: Function Head : InputNamePacket Nr. of arguments : 1
12:09:29: Total was: 1
12:09:29: ==== Stack nesting level ===== : 2 NrOfArguments 1
12:09:29: String : In[2]:= 
12:09:29: ==== Stack nesting level ===== : 1
12:09:29: ==== Stack nesting level ===== : 0
As you can see in the output all arraydata is returned despite the use of the short function.

```

What should I do for the Wolfram Engine NOT to reply all Array data ?
