This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Get("/content/{originalName}") | |
| public static void getContent(String originalName) { | |
| //アップロードされた際にオリジナル名を保存しておく | |
| //異なるアップロード者間で同じファイル名を用いている事が考えられるので保持者も含めて検索 | |
| Content c = Content.findByOwnerAndName(originalName); | |
| notFoundIfNull(c); | |
| byte[] cachedContent = Cache.get("CONTENT_" + c.id,byte[].class); | |
| if(cachedContent!=null){ | |
| response.contentType = c.mime; | |
| renderBinary(new ByteArrayInputStream(cachedContent)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background-color: rgba(0, 0, 0, 0); | |
| overflow:hidden; | |
| color:white; | |
| text-shadow: | |
| -1px -1px #0000ff, | |
| 1px -1px #0000ff, | |
| -1px 1px #0000ff, | |
| 1px 1px #0000ff; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2222 | |
| 33333 |