I have a support issue in with IW for the following problem and they suggested I post the problem here for any help. Our problem is that we have setup the Teamsite/Mediabin connector, but when images are downloaded from MediaBin, they are converted to a specified format unless specifying to 'Get Original'. When they are imported to Teamsite with the connector, the name gets changed to the new format. We need to keep the name as the original even though we lose the modification check, so I tracked down the perl library call and modified the name after the call, but I can't get the files to import as original, only some modified version. Has anyone done anything similar to this and been able to get it to work?
This is my support issue:
I'm trying to use the ecm solution connector in a template, but the file path url needed to be changed from that returned from the following call:
iwov_mediabin_import id='{iw_value name="related_image.image" /}' import_dir='BCBSMA/common/en_US/images'/
I dug into the perl calls until I created this code:
use TeamSite:

T::iwov_mediabin_import;
use File::Basename;
# Get the id that the image is referred to
my $dcrpath = iwpt_get_dcr_name();
my $dcrname = basename( $dcrpath );
# This must begin with /.iwmnt
my $workarea = $dcrpath;
$workarea =~ s/^(.+)\/templatedata\/.+$/$1/;
my $mediabin_id = iwpt_dcr_value( 'dcr.related_image.image' );
my( $url, $path, $modified ) = TeamSite:

T::iwov_mediabin_import::get_filepath( $mediabin_id, $dcrname, $dcrpath,
"feature_menu_items.tpl", $workarea, '',
"BCBSMA/common/en_US/images",
"(Get Original)", "", "", "" );
#"(Get Original)", "JPG", "100", "100" );
# Url must be modified to make it relative to actual template
$url =~ s/BCBSMA\///;
# The conversion on the web server is broken for spaces in the image path
$url =~ s/ /\%20/g;
iwpt_output("$url\n");
This works ok:
"(Get Original)", "JPG", "100", "100" );
Whereas this:
"(Get Original)", "", "", "" );
will download the file ok, but gives a java.null.exception error on the generation of the dcr.
The docs say that the format(and sizes) are ignored if the task(Get Original) is specified. Can someone contact me and tell me how to fix this problem?
ECM Solution 1.1.1
MediaBin 4.5.2 Build 14
Teamsite 6.1.0 sp 1
Thanks