Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Get File As Container

Featured Replies

I'm writing a server-side script using ScriptMaster on FMSA11 OSX to download an image from an arbitrary URL & store in a container field, then crop it & create thumbnails, and store these in a container field.

Everything is working great EXCEPT…

Get File As Container isn't working, either client- or server-side. I've confirmed that the file path and the image files themselves are valid.

I re-downloaded a fresh copy of the ScriptMaster example file and I'm finding that even the simple example of Get File As Container isn't working. The function returns "?" as the container result, and the output variable "fileExists" returns "ERROR". The expected file (in this case Clown Fish.jpg) does exist in the location specified in the "pathToFile" input parameter. Substituting other known images doesn't make any difference in the results.

Is this a known error? Or is this possibly caused by the recent OSX Java update?

As a work-around, does anyone know of a server-side compatible method of getting an image file into a container field (either directly or via the OSX clipboard?). I've tried bash's pbcopy, but this pulls the image file as text.

Thanks…

Brian

.  .  .  .  .  .  .  .  .  .  .  .  .

brian schick

developer

b e e z w a x

www.beezwax.net

510 516 0055  direct

888 835 4483  main

screen 2011-03-12 at 11.53.33   Mar 12.png

I just tested this function on Windows Vista with ScriptMaster 4.12, and it worked for me. This makes me think it's likely caused by the OSX Java update, as you thought.

Possible alternate method:

If you can get the image as base64, you should be able to use ScriptMasters 'Base64 Decode to Binary' function to convert it back into an image again.

I've confirmed that it is indeed the recent Java updater that breaks this function. Testing identical code on machines with and without updaters, Get File as Container fails with the Java update, but works as expected for non-updated systems

.  .  .  .  .  .  .  .  .  .  .  .  .

brian schick

developer

b e e z w a x

www.beezwax.net

510 516 0055  direct

888 835 4483  main

Thanks Dan,

I'm getting by with convincing the client to avoid the evil java update. But that's very good to know : )

Thanks Dan,

I'm getting by with convincing the client to avoid the evil java update. But that's very good to know : )

I just tried the 'Get File As Container' and it worked OK for me. I have the latest Java update 24:

java version "1.6.0_24"

Java™ SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)

Java HotSpot™ 64-Bit Server VM (build 19.1-b02-334, mixed mode)

jesse:~ jesse$

Be sure that you're using ScriptMaster 4.121 or later, there was an issue introduced in 4.12 (and fixed in 4.121) which might be causing this problem.

Be sure that you're using ScriptMaster 4.121 or later, there was an issue introduced in 4.12 (and fixed in 4.121) which might be causing this problem.

Thank you, Jesse. I'd missed the 4.121 update, and was using v 4.12 as you suggested.

This is now working once again on my Snow Leopard mac with the Java update. Thanks again for your help : )

- Brian

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.