I'm getting a PathNotFoundException in cq5 while accessing a node. I'm trying to extract the data of a pdf file from its jcr:content node. but i'm getting path not found exception because name of my file contains spaces because it sling not able to map the request to corresponding file. My file name is "Sbi FB Deals Done.pdf" which is getting converted by my code into /content/dam/sbi/personal/docs/Sbi%20FB%20Deals%20Done.pdf
due to %20its not getting map with file. here is my code where i'm getting this exception
Node fileNode = session.getNode(filePath+"/jcr:content/renditions/original/jcr:content");
inputStream = fileNode.getProperty("jcr:data").getBinary().getStream();
where file path is /content/dam/sbi/personal/docs/Sbi FB Deals Done.pdf
any idea for this ? any way to access a file who contains spaces in cq5