Re: Fwd: pdf files http_open
Jan Wielemaker <[email protected]> Wed, 14 May 2014 09:08:58 +0200
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 05/14/2014 04:22 AM, Josef Fydl wrote:
> I can not attached, but this is the code
> open('byswi.pdf', write, S),
You need open('byswi.pdf', write, S, [type(binary)]). Without, you'll
be translating the
binary stream into a text stream.
Cheers --- Jan
http_open('http://www.whitehouse.gov/sites/default/files/docs/wh_now_is_the_time_full.pdf',
In, []),
> copy_stream_data(In, S),close(In),close(S).
> And you can enter http://www.whitehouse.gov/sites/default/files/docs/wh_now_is_the_time_full.pdf'
> and save