Fixed Resource
parent
48e0d2dd6e
commit
0c62842929
|
@ -31,6 +31,9 @@ public class Ressource {
|
|||
}
|
||||
|
||||
public static byte[] load(InputStream in) throws IOException{
|
||||
if (in == null){
|
||||
return new byte[0];
|
||||
}
|
||||
byte[] buffer = new byte[in.available()];
|
||||
in.read(buffer);
|
||||
return buffer;
|
||||
|
|
Loading…
Reference in New Issue