473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to download file from NAS using classic ASP?

Hi there,

I am new here and still learning about programming. Can anyone tell me about how to download a file in NAS using Classic ASP?

For an examples information,
NAS IP: 113.3.103.2
share folder in NAS/partition: share_partition
folder: uploadFile

And here is an examples of snippet code I try.

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim fname,path_test2
  3. fname="test.png"
  4. path_test2="//113.3.103.2/share_partition/uploadFile/"
  5. %>
  6. <table width="100%" cellspacing="0" cellpadding="0" border="0" class="doctext">
  7.   <tr>
  8.     <td>&nbsp;&nbsp;<a href="<%=path_test2&fname%>" target="_blank"><%=fname%></a></td>
  9.   </tr>
  10. </table>
Can someone of you,as my senior in programmer,teach me about this.I use this UNC but cannot download the file.The error tell, that 113.3.103.2 not response.Is it means that permission are not apply in IIS for this application to access the NAS?


edit:
I already put the impersonations account of NAS in IIS web application authentications.To give access for this application into NAS.

Thanks in advance for helping me.
Thank you.
Feb 20 '13 #1
3 1948
Rabbit
12,516 Expert Mod 8TB
Is this for an intranet site or an internet site? Someone on the internet is not going to have access to your intranet's internal IPs. You will have to copy the file a folder on the website's root and link to that.
Feb 20 '13 #2
It is for Intranet site.forgot to tell you that NAS I am using now has an account created to access it.
examples:
username: iamuser
pswd: test2013
Feb 20 '13 #3
Rabbit
12,516 Expert Mod 8TB
Well, that account doesn't really matter. You're just linking to that location, that requires no permissions. When the user clicks the link, it will use that users permissions to actually go to that location. So unless the user actually has access to that location, they're not going to be able to access it.
Feb 20 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ASP Spam Fighter | last post by:
Hello all, I don't know how to get around this one... If anybody can help me with this problem, I would appreciate it very much. I've been trying to send a (large) file to the browser via a...
1
by: Vasu | last post by:
Hi, I have a requirement to download a file from the web site using a client tool. Iam writing a C# program to download using WebRequest, HttpRequest, WebResponse and so on. The problem...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
3
by: Geethu03 | last post by:
In my application i want to download the files in web by using the java or JSP program. please help me to do this program. Thanks and Regards, Geethu.
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
3
by: cypherkro | last post by:
Hi I have a requirement to automatically download a file using a WebBrowser control without having the "Download File" pop up windows display. I cannot use Webclient!! I am using VS2005, .net2...
4
by: pplers | last post by:
I have a list of files (zip, rar) that require cookies to download them. So i would like to know how to do it....
5
by: vinodkus | last post by:
dear sir/madam I have to write a code for download file using asp. please help me thanks in advance
3
colinod
by: colinod | last post by:
I am trying to get my site to download mp3 files without having to right click - save as on a link. I have found this code, which works as long as the file names are short, if they get a bit long it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.