0 votes

Server Side:
var SreenMonitorImage ="res://Resources/001.jpg"
var image = Image.new()

Client Side:
var receiveddata = _client.getpeer(1).getvar()
var image = Image.new()

The fault at the Client side:
"Invalid type in function 'loadjpgfrom_buffer' in base 'Image'. Cannot convert argument 1 from Object to PackedByteArray."
How could I make the right conversion?

I tried at server side as follows:
var image2 = image.getdata()
peer(id).put_packet (image2)

But with the fault at Server side:

“E 0:00:07:0639 process: Condition "outbufsize && (wslayeventgetqueuedmsglength(data->ctx) + pbuffersize >= (1ULL << outbufsize))" is true. Returning: ERROUTOFMEMORY
<C++ Source> modules/websocket/wslpeer.cpp:245 @ putpacket()
server.gd:68 @ _connected()
server.gd:44 @ _process()”

The size of image is just 8k. What's the problem and how to solve it?

Godot version godot 4.0 beta2
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.