Computer problems,Computer help
*AX SOFT>>>Programming & Design

Image storage?


I am building a site for a project where users can sign up. Now this means they also have a profile image and possibly a background image but I put a sample 60x60 profile image in the MySQL db and it will not print out. I was informed I should not used the db to store the image. What way should this be done?

Using ColdFusion but the basic principles are the same as other languages of course so any help at all is appreciated.

Thanks Einchi but one thing, What if a user uploads an image with the same name of one that is already up there?

I dont know in coldFusion but in i know in PHP. Just save image location in your server to Mysql. For example i have me.jpg, in my localhost field "location" and the value is c://windows/xampp/htdocs/image/me.jpg and then attach to your web page using your script that point image location from your database. In PHP works fine and dinamically can upload image to webpage dinamically.

good idea

As Einchi said, that's (in my opinion) the best way to handle this kind of things without the hassle of dealing with database images.

To avoid repetition I normally change the name of the image file before storing it on the server Hard Drive using the User ID and Username and a random number in order to set an unique name for the file.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Need help with designing a flash website, anyone up for it?

    You can post your project requirement at freelance website like ...

  • Can i extract the code of a program even if it is in the .exe form?? if yes then how can i do it??

    Yes you can... You can extract the code from the executable files or binary files by using programs called decompilers... They do the reverse job of Compilers... Ofcourse most of the readabi...

  • Can i extract the code of a program in vb6 even if it is in the .exe form?? if yes then how can i do it??

    The code in the exe isn't VB, it's machine code. You can extract the assembly version of the machine code by using a disassembler, but it won't do you any good unless you understand...

  • Running JAVA games on computer!?

    have a look at these search results ...

  • Can any one tell me how I can do a program for my dental clinic database?

    i dont think you are a programmer. If not, please dont try it. Out source your work to some offshore programmer in india. you will get high quality software in low price. I am asoftware developer. ...

  • What are the Active directory componente?

    I am not sure what you mean by components but active directory is Microsoft proprietary and runs on DNS. It stores network information. You can also access the directory and manipulate network re...

  • Background... help?

    Here is the link: ...

  • Want to migrate WindowsXp to Ubuntu 7.10. Can u tell me first step and basics for this.?

    If you don't have experience with Linux, I recommend PCLinuxOS. ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster