Changes for page ngi-0-logo
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
-
Class properties (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,22 +1,8 @@ 1 1 {{groovy}} 2 + 2 2 // Nom de l'image en pièce jointe 3 -def attachmentName = ' NGIZero_logo.png'4 +def attachmentName = 'image.gif' 4 4 5 -// Récupérer l'image en pièce jointe 6 -def img = doc.getAttachment(attachmentName) 7 7 8 -if (img != null) { 9 - def outs = response.outputStream 10 - response.setContentType("image/png") 11 - 12 - // Récupérer le contenu de l'image 13 - def imgBytes = img.getContent() 14 - 15 - // Écrire les bytes dans le flux de sortie 16 - outs.write(imgBytes) 17 - outs.close() 18 -} else { 19 - response.sendError(404, "L'image n'existe pas.") 20 -} 21 21 {{/groovy}} 22 22
- NGIZero_logo.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -xwiki:XWiki.wadmin - Size
-
... ... @@ -1,1 +1,0 @@ 1 -17.5 KB - Content
- count
-
- Editor
-
... ... @@ -1,1 +1,0 @@ 1 ---- - Pretty Name
-
... ... @@ -1,1 +1,0 @@ 1 -count - Rows
-
... ... @@ -1,1 +1,0 @@ 1 -5 - Number
-
... ... @@ -1,1 +1,0 @@ 1 -1 - Size
-
... ... @@ -1,1 +1,0 @@ 1 -40 - Restricted
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Name
-
... ... @@ -1,1 +1,0 @@ 1 -count - Use Suggest
-
... ... @@ -1,1 +1,0 @@ 1 -1