[Solved] How to get an attachment from specified path [closed]


This is applicable when you want to read attachment from your local,
If you want to read file from remote system or some other things there are different ways.

      String filePAthDB ="E:/Eclipse-Leo/RD_JMS/src/test/textfile.jpg";
      File f = new File(filePAthDB );
      if(f.exists())
       {
            //process file whatever you want
          System.out.println("Attachment available......");
       }
      else
          System.out.println("not Attachment available......");

solved How to get an attachment from specified path [closed]