filepath is../home/infrastructure/WEB-INF/classes/attachments_email/4091/Upload Document/Consolidate.pdf
But problem is in filepath spaces are there at "Upload Document".when clicking on this link the path showing like
"/home/infrastructure/WEB-INF/classes/attachments_email/4091/Upload%20Document/Consolidate.pdf" in firefox and chromium browsers..
please can anyone help me on this and i want only to open file directly by clicking on filename.is this code works for that or need any changes?please help me.
But while opening it is showing an error like http status404 error as the requested resource not available.but my pdf file iss there in that specified path..please reply me what to do to get open that file by clicking on that link.please help me.