i have made an application for save customer invoices in shared folder
so first in my desktop-pc i have create a folder and named as "PDFINVOICES" in D: drive.
and i have made dat folder to accessible for everyone.
Folder right click->propeties->sharing->advance sharing & also in security tab as well
and i have changed my application path as
String path = "docs/" + pdfFilename;
String path = "file://172.21.1.91/PDFINVOICES/" + pdfFilename;
java.io.FileNotFoundException: file:\172.21.1.91\PDFINVOICES\222016-08-23.pdf (The filename, directory name, or volume label syntax is incorrect)
Just quess but try:
String path = "\\\\172.21.1.91\\PDFINVOICES\\" + pdfFilename;