001    package railo.runtime.functions.image;
002    
003    import railo.runtime.PageContext;
004    import railo.runtime.exp.PageException;
005    import railo.runtime.img.Image;
006    
007    public class ImageGetBlob {
008    
009            public static Object call(PageContext pc, Object source) throws PageException {
010                    //if(name instanceof String) name=pc.getVariable(Caster.toString(name));
011                    //return Image.toImage(name).getByteArray();
012                    return Image.createImage(pc, source, true,true,true,null).getImageBytes(null);
013            }
014            
015    }