# Fileuploader and Database

**URL:** <https://forum.kirupa.com/t/fileuploader-and-database/303917>\
**Category:** flash\
**Created:** [January 28, 2010, 11:44pm UTC](https://forum.kirupa.com/t/fileuploader-and-database/303917 "2010-01-28T23:44:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitree](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dimitree/32/2530_2.png) [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Post date:** [January 28, 2010, 11:44pm UTC](https://forum.kirupa.com/t/fileuploader-and-database/303917/1 "2010-01-28T23:44:43Z")

</div>

I am looking for a way to upload external images and store them in a database. So far I ve made a fileuploader that loads images in a folder.  
I d like the same thing but store them in database. Do I have to change my Actionscript code or the change has to be done in the PHP file?($db = mysql\_connect etc…)

From them on I will load each one in a a flash movie and resize them.  
The thing that confuses me more is how can I rename each image (let’s say the user uploads an image called myphoto.jpg) to a name so I can resize later using BitmapData ?
