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

19
LINES

< > BotCompany Repo | #1002137 // snippetImageURL

JavaX fragment (include)

sS snippetImageURL(long snippetID) {
  ret snippetImageURL(fsI(snippetID));
}

static S snippetImageURL(S snippetID) {
  ret snippetImageURL(snippetID, "png");
}

static S snippetImageURL(S snippetID, S contentType) {
  if (snippetID == null || isURL(snippetID)) ret snippetID;
  long id = parseSnippetID(snippetID);
  String url;
  if (isImageServerSnippet(id))
    url = imageServerLink(id);
  else
    //url = "http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=serve&file=blob_" + id + "&contentType=image/" + contentType;
    url = "https://botcompany.de/img/" + id;
  return url;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002137
Snippet name: snippetImageURL
Eternal ID of this version: #1002137/12
Text MD5: e5b7a07571f48cee3d8861fe5aa349e9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-18 23:33:23
Source code size: 612 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 851 / 1179
Version history: 11 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1003393 - snippetImgLink - synonym of snippetImageURL
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007680 - snippetImageGIFURL
#1015904 - snippetImageURL_noHttps - Java is still bitchy
#1019000 - snippetImageURL_http
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)
#3000475 - Smart Bot's answer to: !fresh recentlyChangedSnippets()