Re: This should be ridiculously simple, but....
On Feb 2, 4:58 pm, "Hal Rosser" <hmros...@bellsouth.net> wrote:
"Andrew Thompson" <andrewtho...@gmail.com> wrote in message
news:1170309516.805928.73330@a75g2000cwd.googlegroups.com...
On Feb 1, 11:21 am, "Hal Rosser" <hmros...@bellsouth.net> wrote:
"Oliver Wong" <o...@castortech.com> wrote in message
news:JC6wh.84515$rD5.650525@wagner.videotron.net...
"furby" <Wookie...@gmail.com> wrote in message
news:1170272861.728919.64280@j27g2000cwj.googlegroups.com...
I need to write a java application that can open a connection to a PDF
file and copy it to the hard drive.
I *think* the way to do this is with a
"DataInputStream"/"DataOutputStream" process, but even if I convert
everything to byte format, the resulting copied files will not open in
Adobe Reader....
Can anyone help me? Has anyone don't this type of thing before?
Did you tryhttp://www.rgagnon.com/javadetails/java-0064.html?
Take a look at the Runtime class in the API.
Are you suggesting the OP use system commands
to *copy* *files*? Note the question was not how
to *open* a PDF file, but simply how to make a
byte-for-byte copy of a PDF file (that the default
reader is capable of opening).
As an aside, why did you tack your post on the
end of Oliver's reply? It seemed you had nothing
to say about anything he wrote.
...
Thousands of pardons ,Masta Andee
My name is Andrew, and if you cannot
get it correct, you will become known as
Halibut (by me, in any case).
Wouldn't a copy be byte-for-byte? Note the caveat.
(moved)
Caveat: You may lose portability of your application to other platforms.
Of course you might. Yes I did, and
I do not understand why you asked
the question then 'noted' the caveat.
Perhaps I missed something that you
would care to expand on, for the
enlightenment of me, and any others
(including the OP) who might be
interested enough to read.
The posting at the end of the replier rather than to the OP - just a slip -
Noted. I was just curious if you had
some obscure meaning, that I missed.
Are you in charge of this group, or just the enforcer?
Just a person with some common sense.
No reply needed.
What you need, & what you get, do not
always correlate neatly.
Andrew T.