BLOB loading

hi all,

I was thinking if any of you could help me on this project of mine… here's the scenario… I was able to upload a *.3ds model to a blob field in my mysql database… I am able to import 3ds meshes using the code below with the use of absolute paths to the parameters where it is intended to be put in…

try {
            MaxToJme C1 = new MaxToJme();
            ByteArrayOutputStream BO = new ByteArrayOutputStream();
            C1.convert(new BufferedInputStream(modelToLoad.openStream()), BO);
            Spatial r1 = (Spatial)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            //Node r = new Node("parent stuff");
            //r.attachChild(C1.get(new BufferedInputStream(modelToLoad.openStream()), BO));
            Quaternion temp = new Quaternion();
            temp.fromAngleAxis(FastMath.PI / 2, new Vector3f(-1, 0, 0));
            r1.setLocalTranslation(new Vector3f(10,0,0));
        } catch (IOException e) {
            logger.log(Level.SEVERE, "Failed to load Max file", e);

How could I import that model of mine that is uploaded into a blob... when I search in google the only way they give me is that to retrieve it into a byte[] type... could this help me?

yes, you can create an input stream from a byte array like this:

byte[] buf=getBytes();
ByteArrayInputStream is = new ByteArrayInputStream(buf);