Download Jar. Libraryless. Click here for Pure Java version (3868L/27K).
1 | !7 |
2 | |
3 | html {
|
4 | uri = dropPrefix("/", uri);
|
5 | long id = parseLong(uri); |
6 | |
7 | File f = programFile(#1010733, "blob_" + id); |
8 | if (!f.exists()) |
9 | saveBinaryPageToFile("http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=serve&file=blob_" + id, f);
|
10 | |
11 | if (isPNG(f)) |
12 | ret subBot_servePNG(f); |
13 | else |
14 | ret subBot_serveJPEG(f); |
15 | } |
Began life as a copy of #1014036
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xfasiavlzxuf
No comments. add comment
| Snippet ID: | #1014038 |
| Snippet name: | Serve Images |
| Eternal ID of this version: | #1014038/4 |
| Text MD5: | 61f5d3846ca93d4c5d29833e5639c29f |
| Transpilation MD5: | 1ffefd0e476bd079d1aa00bd2fadcd34 |
| Author: | stefan |
| Category: | javax / web |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-04-09 11:57:11 |
| Source code size: | 347 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 771 / 4682 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |