I have made an application to save customer invoices in shared folder
so first in my desktop-pc I have created a folder and named as "PDFINVOICES" in D: drive.
and I have made that folder to accessible for everyone.
Folder right click->properties->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;