BlockId blockId = new BlockId(containerId, segmentId, id);
try
{
Block block = fs.read(blockId);
JSONNode root = JSONHelper.createSuccessNode();
JSONAttribute containerId = new JSONAttribute("containerId", ""+blockId.getContainerId(), AttrType.Number);
JSONAttribute segmentId = new JSONAttribute("segmentId", ""+blockId.getSegmentId(), AttrType.Number);
JSONAttribute id = new JSONAttribute("blockId", ""+blockId.getId(), AttrType.Number);
JSONAttribute data = new JSONAttribute("data", Base64.encodeBase64String(block.getBytes()),AttrType.String);
root.add(containerId);
root.add(segmentId);
root.add(id);
root.add(data);