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

20
LINES

< > BotCompany Repo | #1000755 // Upload binary data to TinyBrain

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1462L/11K/33K).

!752


  static String programID;
  static boolean test;
  
  psvm {
    String name = args[0]; // put file name here
    if (args.length > 1 && args[1].equals("test"))
      test = true;
    name = new File(name).getAbsolutePath();
    byte[] data  = loadBinaryFile(name);
    if (data == null)
      System.out.println("File not found: " + name);
    else
      if (test)
        print(binaryUrlencode(data));
      else
        uploadData("data-uploader " + programID, "Data file " + name + " from " + computerID(), data);
  }

Author comment

Began life as a copy of #1000743

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000755
Snippet name: Upload binary data to TinyBrain
Eternal ID of this version: #1000755/1
Text MD5: 0962860ef083629d55a8751d766cdfa1
Transpilation MD5: 8c8b46c308f02240f6aba9445ebbfccb
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-16 01:16:44
Source code size: 550 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 578 / 1047
Referenced in: [show references]