Upload a image from different machine using browse button

Previously i have tried to upload images using browse button in ROR.All
the images are uploaded from local machine and remote machine and stored
in the database(MySql).But when i was trying to show the images,i have
faced some problem,images were not showing properly.i have used
file_column plugins.The problem is that the url of those images were not
same with respect to the actual path where these images were actually
stored.Considering my problem Please anybody gives me any solution of
this as soon as possible.