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

23
LINES

< > BotCompany Repo | #1016427 // Upload Image To Image Server [hotwirable module]

JavaX module [tags: use-pretranspiled]

Download Jar. Libraryless. Click here for Pure Java version (8183L/59K/217K).

!7

set flag standardTitlePopupMenu_noProgramFunctions.
svoid restart() {} // help out transpiler who should honor ifndefs better
svoid duplicateThisProgram() {}

static void go(final BufferedImage img, S title) {
  final JTextField tf = jTextField(title);
  showFormTitled("Upload Image (JPEG)",
    "Image title (optional)", tf, func {
      disableSubmitButton(getFrame(tf));
      thread "Upload Image" {
        try {
          messageBox("Image uploaded as " + uploadJPEGToImageServer(img, getTextTrim(tf)));
          disposeFrame(tf);
        } catch e {
          enableSubmitButton(getFrame(tf));
          messageBox(e);
        }
      }
      false;
    });
}

Author comment

Began life as a copy of #1007313

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016427
Snippet name: Upload Image To Image Server [hotwirable module]
Eternal ID of this version: #1016427/3
Text MD5: da2385ded656b58cf4081fd87af9aead
Transpilation MD5: ce449897cb411d9f6c58838008d7e0a4
Author: stefan
Category: javax / gui
Type: JavaX module
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-01 16:47:29
Source code size: 694 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 576 / 2929
Version history: 2 change(s)
Referenced in: #1004553 - ImageSurface