开发者

Passing file between two servers

i have a program written in classic asp that is used to upload a picture onto a database.

this code is stored on server 1. what i want to do is save a cop开发者_StackOverflow中文版y of the picture in a file on server 2 for security reasons. when the user clicks on a link on the page from the code on server 1 e.g view photos, the code will link to server 2, to the folder where the images are saved and then display the images can anyone inform me how to do this please? any help is welcomed.


This is something to implement in your ASP application.

Create a network share on server 2 and grant the ASP user account read/write rights on that share. The moment you write the file to the database you can also write it to the network share.

Look into Open "\\server2\myshare\myfile.jpg" For Binary Access on how to write the file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜