Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using sockets for "downloader" application in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64314] Re: Using sockets for "downloader" application in Mathematica
  • From: "John Jowett" <John.Jowett at cern.ch>
  • Date: Sat, 11 Feb 2006 03:32:44 -0500 (EST)
  • Organization: CERN - European Laboratory for Particle Physics
  • References: <dshfkb$hob$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I knew about using Import with URLs but had the impression that it was 
limited to a restricted class of URLs. Examples like this one give me an 
error

Java::excptn: A Java exception occurred: java.io.IOException: The filename, 
\ directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at java.io.File.createTempFile(File.java:1439)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:\
39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(\
DelegatingMethodAccessorImpl.java:25).

But obviously they are working for other people. Is there something wrong 
with my setup of Mathematica 5.2 (or Java, which I know less about) on 
Windows XP ?

I did find that the GetURL.nb Jlink example notebook works fine with such 
URLs.

Can anyone help ?

Thanks,
John Jowett
<Mitch.Stonehocker at sungard.com> wrote in message 
news:dshfkb$hob$1 at smc.vnet.net...
> As an example this works for me...
>
> Import["http://ichart.finance.yahoo.com/table.csv?s=%5EDJI&a=09&b=1&c=20
> 00&d=01&e=9&f=2006&g=m&ignore=.csv","CSV"]
>
> Cheers,
>
> Mitch Stonehocker
>
> -----Original Message-----
> From: Renan [mailto:renan.birck at gmail.com]
To: mathgroup at smc.vnet.net
> Subject: [mg64314]  Using sockets for "downloader" application in
> Mathematica
>
> Hello,
>
> I have a Mathematica program which will read data from a file.
> The file is in a Web server and so must be retrieved,
> so I use
>
> !"wget http://URL/filename";
>
>
> In Linux this is OK, but in Windows this is a source of trouble for me,
> as Windows doesn't have a 'wget' by default.
>
> So, is there some way to implement a "downloader" for a file in
> Mathematica?
>
>
> Running Mathematica 5.2, Windows XP.
>
>
> Thanks,
> Renan.
> 



  • Prev by Date: Re: Overriding Mathematica function Print
  • Next by Date: Re: Re: Comparison of Mathematica on Various Computers
  • Previous by thread: Re: Using sockets for "downloader" application in Mathematica
  • Next by thread: Re: Using sockets for "downloader" application in Mathematica