//Save the binary objects into separate db
ObjectId gridid = saveGridFile(bytes);
share.setBinaryId(gridid);
// Save the document to the share collection
DbManager.getSocial().getShare().save(share.toDb());
rp.setResponse(new ResponseObject("Share", true, "New binary share added successfully. ID in data field"));
rp.setData(id.toString(), null);
}
catch (Exception e)
{