March 21, 20223 yr Newbies 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
March 21, 20223 yr 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;
Create an account or sign in to comment