projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Polish translation.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
UploadImagePage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/UploadImagePage.java
b/src/main/java/net/pterodactylus/sone/web/UploadImagePage.java
index
e160c32
..
559a8ff
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/UploadImagePage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/UploadImagePage.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - UploadImagePage.java - Copyright © 2011 David Roden
+ * Sone - UploadImagePage.java - Copyright © 2011
–2012
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-145,7
+145,7
@@
public class UploadImagePage extends SoneTemplatePage {
* @return The MIME type of the image, or “application/octet-stream” if the
* image type could not be detected
*/
* @return The MIME type of the image, or “application/octet-stream” if the
* image type could not be detected
*/
- private String getMimeType(byte[] imageData) {
+ private
static
String getMimeType(byte[] imageData) {
ByteArrayInputStream imageDataInputStream = new ByteArrayInputStream(imageData);
try {
ImageInputStream imageInputStream = ImageIO.createImageInputStream(imageDataInputStream);
ByteArrayInputStream imageDataInputStream = new ByteArrayInputStream(imageData);
try {
ImageInputStream imageInputStream = ImageIO.createImageInputStream(imageDataInputStream);