The correct way to download a parcel from website and save to use it?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
J G
Reply | Threaded
Open this post in threaded view
|

The correct way to download a parcel from website and save to use it?

J G
hi,

I've put my parcel on internet (spiderOak) for backup and want to
download from inside VWNC and save it to a file for later use. However
I'm missing the correct way to do so and I have tried several times
without a good luck.
Here is my code sample, which must be wrong, for retrieving the
update.pcl from the site:
        | update |
        update := (Net.HttpsClient new
                                executeRequest: (Net.HttpRequest get:
'https://spideroak.com/share/{somethinghere}/e%3A/toSpiderOak/DabaozangII.pcl'))
body
                                value.
        'update.pcl' asFilename writeStream binary nextPutAll: update.

This update.pcf can't be loaded.

Any advice? thanks !

Best Regards,

Jim G
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: The correct way to download a parcel from website and saveto use it?

Kogan, Tamara

The code below loads the WebServicesNamespace parcel.

update := (Net.HttpClient get:  'http://localhost/tamara/WebServicesNamespace.pcl').
bytes := update body value.
stream := 'WebServicesNamespace.pcl' asFilename writeStream.
stream binary.
stream binary nextPutAll: bytes.
stream close.

update1 := (Net.HttpClient get:  'http://localhost/tamara/WebServicesNamespace.pst').
bytes := update1 body value.
stream := 'WebServicesNamespace.pst' asFilename writeStream.
stream binary.
stream nextPutAll: bytes.
stream close.

Parcel loadParcelFrom: 'WebServicesNamespace.pcl'

HTH,
Tamara Kogan
Smalltalk development,
Cincom Systems
 

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of J G
> Sent: Sunday, May 23, 2010 2:54 AM
> To: vwnc
> Subject: [vwnc] The correct way to download a parcel from
> website and saveto use it?
>
> hi,
>
> I've put my parcel on internet (spiderOak) for backup and want to
> download from inside VWNC and save it to a file for later use. However
> I'm missing the correct way to do so and I have tried several times
> without a good luck.
> Here is my code sample, which must be wrong, for retrieving the
> update.pcl from the site:
> | update |
> update := (Net.HttpsClient new
> executeRequest: (Net.HttpRequest get:
> 'https://spideroak.com/share/{somethinghere}/e%3A/toSpiderOak/
DabaozangII.pcl'))

> body
> value.
> 'update.pcl' asFilename writeStream binary nextPutAll: update.
>
> This update.pcf can't be loaded.
>
> Any advice? thanks !
>
> Best Regards,
>
> Jim G
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc