@Override
    public byte[] getPayload() throws IOException {
        File f=getFile();
        if(f==null) {
            log(this,Level.WARNING,"getPayload() called for null file - "+this.describeNode());
            return null;
        }
        if(f.length() > 10240*1024) {
            log(this,Level.WARNING,"getPayload() not supported on large file: "+f.toString());
            return null;
        }
        byte buf[]= new byte[(int)(f.length())];
        FileInputStream ins = null;
        ins = new FileInputStream(f);

        try {
            ins.read(buf);
        } catch (IOException ex) {
        	ins.close();
            Logger.getLogger(MediaFile.class.getName()).log(Level.SEVERE, null, ex);
            throw ex;
        }
        
        ins.close();

        return buf;
    }