• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing a file on a network
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing a file on a network


  • Subject: Re: Accessing a file on a network
  • From: Calven Eggert <email@hidden>
  • Date: Wed, 24 Aug 2011 12:40:06 -0400

can't mount the file server.  which network protocol do you recommend? I'll be simply opening a pdf or Word document and saving in my oracle database.

On 2011-08-24, at 12:36 PM, Pascal Robert wrote:

> Either you mount the remote file system locally (by AppleShare/NFS/whatever) and access it locally (/Volumes/Something/path/to/file, if the local server is OSX), or you find an implementation of the network protocol (AFP, NFS, SMB, FTP, SFTP, etc.) in Java so that you can access it.
>
>> How do I access a file on a network server?
>>
>> I can open a local file like this:
>>
>> File tempFile = new File(detailPath);
>> try {
>>   InputStream inStream = (InputStream) new FileInputStream(tempFile);
>>   int contentLength = (int)tempFile.length();
>>   ...
>>
>> Is there something "tricky" about accessing a file on a network server?
>>
>> I get the msg "No such file or directory" so of course the path is not right.  Do you have to imbed server name? what about passwords?  ok, I'm totally clueless on this one. :-)
>>
>> I have a path that looks something like this:
>> /users/ws17web/filename
>>
>> Thanks,
>> Calven
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Accessing a file on a network
      • From: Pascal Robert <email@hidden>
References: 
 >Accessing a file on a network (From: Calven Eggert <email@hidden>)
 >Re: Accessing a file on a network (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: Accessing a file on a network
  • Next by Date: Re: Trapping SQLException in D2W
  • Previous by thread: Re: Accessing a file on a network
  • Next by thread: Re: Accessing a file on a network
  • Index(es):
    • Date
    • Thread