Jump to content


master , borther how to remote access binary file with asp


  • You cannot reply to this topic
No replies to this topic

#1 Haners

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 08 March 2006 - 09:42 PM

hi thanks for viewing mt threat.

i need to create a function in asp to remote access my network local pc.for example

master = is a domain server
webmaster = is a web server
pc1 = is local pc which under master.

i need to create a function to browse the binary file in pc1 with asp.
i already success build up the connection between domain server, web server and pc1.

the code below success display the txt file in pc1 but not binary file ( tiff , jpg, pdf ) Please help me for to display the binary as well :

-------------------------------------------------------------------------------------------------------------------------------------------
Const fsoForReading = 1

Dim objFSO
Set objFSO = Server.CreateObject ("Scripting.FileSystemObject")

Dim objTextStream
Set objTextStream = objFSO.OpenTextFile ("\\ Local pc name \ D \ Share folder \ pending.txt",fsoForReading)


Response.Write objTextStream.ReadAll

objTextStream.Close
Set objTextStream = Nothing
Set objFSO = Nothing

------------------------------------------------------------------------------------------------------------------------------------------





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users