Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1006493 // grabScreenshotFrom_png - get screenshot as raw PNG from another PC that is running PC Awareness

JavaX fragment (include)

static byte[] grabScreenshotFrom_png(S ip) {
  S s = sendToAwareness(ip, "screenshot");
  if (!startsWith(s, "[")) fail(s);
  L l = cast safeUnstructure(s);
  S type = cast first(l);
  assertEquals("png", type);
  ret (byte[]) l.get(1);
}

Author comment

Began life as a copy of #1006489

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006493
Snippet name: grabScreenshotFrom_png - get screenshot as raw PNG from another PC that is running PC Awareness
Eternal ID of this version: #1006493/1
Text MD5: db5578f9ef010675e2c8c9c38efd77f2
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-10 18:35:54
Source code size: 247 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 469 / 471
Referenced in: [show references]