开发者

Passing file between two servers

开发者 https://www.devze.com 2023-03-27 06:33 出处:网络
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

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

精彩评论

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