*/
private void getAttachment(RemoteIssue iss, File resource) throws Exception {
byte[] buff = null;
try {
RemoteAttachment[] atts = fJiraSoapService.getAttachmentsFromIssue(fToken, iss.getKey());
RemoteAttachment ra1 = atts[0];
String id = ra1.getId();
String name = ra1.getFilename();
URL u = new URL(fServerURL + "/secure/attachment/" + id + "/" + name);
URLConnection urlc = u.openConnection();
String userData = fUser + ":" + fPass;
String encodedUserPass = Base64.encode(userData.getBytes());