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 (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 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1002137
Snippet name: snippetImageURL
Eternal ID of this version: #1002137/11
Text MD5: 067d465aa9130aa31b6f5cdd4992a086
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-15 18:53:54
Source code size: 591 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 553 / 752
Version history: 10 change(s)
Referenced in: [show references]

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