PDA

View Full Version : Send an image from one server to another


wolf_man
09-04-2007, 05:06 PM
Hey guys, maybe someone could help me out, or at least point me in the right direction.

I have two seperate servers, one runs ASP.net/ASP and the other runs PHP.
(Both are "media web servers", meaning that they both host/hold images for users.)

Is there a way I upload an image from one server to the other?

(the images would be going from the PHP server to the ASP server)

I'm also trying to get this done with as little user intervention as possible (meaning that the user only has to click a "select" button underneith the image)


EDIT: I appologize, I've posted this in the wrong forum. If an admin/mod wouldnt mind moving it to the ASP forum, thanks.

The trouble I'm having is that I've never used ASP.net and my boss just threw this project on me (since I know PHP, he figured I also knew ASP).

Thanks for any help.

nikkiH
09-04-2007, 07:50 PM
I wouldn't even worry about the ASP.NET part.
Just have the PHP code copy the file to the other server, using a share. Assuming you can create shares. :D

If you can't directly access the server using a share, then you'd have to build an ASP.NET file upload form and call it using the PHP, having PHP post to it.

wolf_man
09-04-2007, 09:52 PM
Yeah, i cant create shares (the other server is a company's product).

Any easy to understand ASP.NET file upload form tutorials?

ad5qa
09-04-2007, 10:20 PM
the best way would be storing the images in binary format on the database (depending on the DBMS). They would be only in one location and you wont give special access to the file system for shares and it would be easy to backup.

nikkiH
09-04-2007, 10:24 PM
the best way would be storing the images in binary format on the database (depending on the DBMS). They would be only in one location and you wont give special access to the file system for shares and it would be easy to backup.

Actually, add my vote to this solution. :)

nikkiH
09-04-2007, 10:27 PM
Yeah, i cant create shares (the other server is a company's product).

Any easy to understand ASP.NET file upload form tutorials?

If you don't go with putting them in the DB, do you have Visual Studio?
Also, what version of .NET, 1.1 or 2.0? There were a lot of changes.
2.0 has a built-in file upload component that makes it way simple.
http://www.c-sharpcorner.com/UploadFile/mahesh/FileUpload10092005172118PM/FileUpload.aspx?ArticleID=79850d6d-0e91-4d7b-9e27-a64a09b0ee6b

ad5qa
09-04-2007, 11:03 PM
If you cant go the DB route use what nikkiH suggested and add in a webservice to provide the images on the asp.net box