Transfer BLOB Data from SQL Server 2000 in LAN to Web Server in DMZ

Here is the schema:

1. Coldfusion web server in DMZ.
2. SQL Server 2000 with local X:/  drive in LAN. And files such as PDF and MP3 are stored on X:/ drive.

The scenario is that when user sends request and Coldfusion web server needs to display PDF or MP3 to user. Therefore, I need to:

1. By user's request, a stored procedure on SQL Server gets corresponding PDF or MP3 from X:/ driver to a temporary table.
2. The stored procedure returns PDF or MP3 as BOLB IMAGE from the temporary table to ColdFusion server.
3. ColdFusion web server displays PDF or MP3.

My question is that is my idea doable? Any comments are welcome!



Who is Participating?
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
X:\ drive being mapped needs to be replaced by \\SERVERNAME\SHARENAME

but for the rest, it is "doable". however, I would not do it like that (for performance reasons):
  * file needs to go over the network from X:\ to the server (temp table), and from there to web server, and from there to client browser. also, this will be quite slow.

 if really you want the sql server in between, you should store the files directly in the database
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.