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

16
LINES

< > BotCompany Repo | #1024140 // Test serving big images over HTTPS (JDK 11+ bug), version for Oracle

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

Download Jar. Libraryless. Click here for Pure Java version (5666L/42K).

!7

set flag LeanMode.
set flag Standalone.

p {
  serveHttps(1443, new File("keystore.p12"), "bugreport");
  disableCertificateValidation();
  S url = "https://localhost:1443";
  byte[] bytes = loadBinaryPage(url);
  print("Image loaded OK (" + l(bytes) + " bytes). Now please try opening " + url +" with Chrome/Firefox.");
}

html {
  ret serveFile(new File("roses.png"), "image/png");
}

Author comment

Began life as a copy of #1024138

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1024140
Snippet name: Test serving big images over HTTPS (JDK 11+ bug), version for Oracle
Eternal ID of this version: #1024140/8
Text MD5: 51180564bf775a15fe3d670dba6435f5
Transpilation MD5: 3420e8c9dbf3e518c8f90aad4f74331e
Author: stefan
Category: javax / networking
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-22 22:56:21
Source code size: 404 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 303 / 963
Version history: 7 change(s)
Referenced in: