Newbies Evan G Posted March 21, 2022 Newbies Posted March 21, 2022 Hi, I saw a response to the question about how to export field contents server side and Jonathan Perel, said he had developed a script and provided a link to it in FMForums. Unfortunately the link is no longer there. Jonathan, or anyone else who may have it, can you repost it here, or provide an updated link? Thanks, Evan
Ocean West Posted March 21, 2022 Posted March 21, 2022 Had to check the archives... Write Container to File ( filePath ; containerField ) import org.apache.commons.io.*; InputStream input; FileOutputStream out; try{ input = fmpro.getContainerStream(containerField); } catch(e){ return false; } if ( input == null ) { return false; } try{ output= new FileOutputStream( filePath ); } catch(e){ return false; } IOUtils.copy (input, output ); //int read = 0; //byte[] bytes = new byte[1024]; //while ((read = input.read(bytes)) != -1) { // output.write(bytes, 0, read); //} return true;
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now