Getting BLOB into Flash?
- Started
- Last post
- 6 Responses
- qaddisin
Hers's something - is it possible to either to dynamically load a image from a mysql DB or somehow put the image somewhere temp. and have flash find it. Get back to me if any ideas come to pass. Thanks in advanced. Q
- qaddisin0
still searching - finding lots of people who ask the question - but not any great answers. can anyone point me in the right direction - maybe something i am missing. i'm thinking php has to render the image and then flash can pick it up. something like that.
- fate0
you'd just want to store the image location in SQL, then use PHP to retrieve the exact location before doing a loadMovie on the image.
- qaddisin0
thanks fate, but in this case the images are stored in the DB as BLOB. wondering how to get flash to access BLOB reference. if that makes any sense at all.
- nospacebar0
You need to create PHP middleware that will interpret the blob data, and have Flash request the file via the PHP script.
More details here:
http://www.devarticles.com/c/a/M…Flash will take in the binary of a graphic (ie: rename a jpeg with a .doc extension, and Flash will still realize it's a graphic), but it has no inherent way of accessing the database without middleware.
- qaddisin0
very helpful indeed. i'll re-post my results when i got this procedure down tight and can explain it easily to my college students and any other interested people out there. thanks again.
- j_red0
whoa, very cool indeed - please keep us posted. thanks.