ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Praveen Agrawal" <pagra...@salmonllc.com>
Subject RE: BIGFISH: importing "http:..." image locations
Date Tue, 25 Sep 2012 05:32:40 GMT
Hi Michel,


It's good to hear that you are exploring BIGFISH.


You are right that if you use the full URL reference in the input file, the
code will append the 'DEFAULT_IMAGE_DIRECTORY' path to the url.

To use the Full URL you can delete the 'DEFAULT_IMAGE_DIRECTORY' path using
the 'Image Location Preference' Section under the Product Load Functions and
then load the Products.


Currently While loading the products, Images are assumed to be already
located in the references given in the input file, so that it reduces the
time to copy all images from one location to another.


We are in the development to handle the 'http' url at both (Product Loader
and Product Images from Admin) places.

If you need any further help, please feel free to get in touch.


Again, Thanks for Keeping eyes on BIGFISH !



Praveen Agrawal




---------- Forwarded message ----------
From: Michel Schroeder <michelschr@gmail.com>
Date: Mon, Sep 24, 2012 at 7:15 PM
Subject: BIGFISH: importing "http:..." image locations
To: user@ofbiz.apache.org


I am referring to the "BF Admin Module Product Loader" doc, page 4:

"URL Locations: any image reference in the input file that begins with
"http" will use the
full URL reference as the file location. For example:
SMALL_IMAGE_URL = http://www.myimages.com/products/some-image.jpg
This indicates that the complete reference, without modification or appends,
should be
used as the file locator."

If I understand correctly, the file:
/bf/hot-deploy/osafeadmin/src/com/osafe/services/ImportServices.java, around
lines 4243 and following seams to benefit from a correction like that:

                String defaultImageDirectory =
                if(UtilValidate.isNotEmpty(defaultImageDirectory)) {
                        if (contentValue.indexOf("http") != 0) {
                        contentValue = defaultImageDirectory + contentValue;

Without that correction the default directory path is inserted before the
url... Maybe I am missing some points?

Anyway, thanks and congratulation for Bigfish!


View this message in context:
Sent from the OFBiz - User mailing list archive at Nabble.com.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message