Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 1046 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

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;

 

This topic is 1046 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.