# Load document from FTP This section explains how to load document from FTP with GroupDocs.Signature API. Following example demonstrates how to process documents from FTP. ```java public static void run() { String server = "ftp.example.com"; String filePath = "sample.doc"; String outputFilePath = new File(Constants.OutputPath, "SignFromStream//signedSample.doc").getPath(); try { InputStream stream = getFileFromFtp(server,filePath); Signature signature = new Signature(stream); { QrCodeSignOptions options = new QrCodeSignOptions("JohnSmith"); options.setEncodeType(QrCodeTypes.QR); options.setLeft(100); options.setTop(100); // sign document to file signature.sign("signedSample.doc", options); } System.out.print("\nSource document signed successfully.\nFile saved "); }catch(Exception e){ throw new GroupDocsSignatureException(e.getMessage()); } } private static InputStream getFileFromFtp(String server, String filePath) throws Exception { FTPClient client = new FTPClient(); client.connect(server); return client.retrieveFileStream(filePath); } ``` ## More resources ### GitHub Examples  You may easily run the code above and see the feature in action in our GitHub examples: * [GroupDocs.Signature for .NET examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET) * [GroupDocs.Signature for Java examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java) * [Document Signature for .NET MVC UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET-MVC) * [Document Signature for .NET App WebForms UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET-WebForms) * [Document Signature for Java App Dropwizard UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Dropwizard) * [Document Signature for Java Spring UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Spring) ### Free Online App  Along with full-featured Java library we provide simple, but powerful free Apps. You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online **[GroupDocs Signature App](https://products.groupdocs.app/signature)**.