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   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, 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: 570 / 798
Version history: 11 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1002137 & http://1002137.tinybrain.de