Thread View: borland.public.cppbuilder.webservices.soap
2 messages
2 total messages
Started by Mr Fishken
Mon, 03 Apr 2006 19:36
TerraService Client
Author: Mr Fishken
Date: Mon, 03 Apr 2006 19:36
Date: Mon, 03 Apr 2006 19:36
27 lines
1489 bytes
1489 bytes
I've created a client to interface with the TerraService. All seems
to work well except when I try and do a GetTile()
The GetTile() returns a TDynByteArray whose length is always 1. I'm
using BCB 6
>- Code Snippet <-
TileId *tid = new TileId();
TByteDynArray image;
TFileStream *out;
BYTE *bytePtr;
int iSize;
tid->Theme = 1;
tid->Scale = Scale16m;
tid->Scene = 10;
tid->X = 172;
tid->Y = 1306;
image =ts->GetTile(tid);
// iSize is always1, no matter what tile i select
iSize = Length(image);
bytePtr = &image[0];
out = new TFileStream("tile.jpg", fmCreate);
out->Write(bytePtr, iSize);
delete out;
Re: TerraService Client
Author: Mr Fishken
Date: Mon, 03 Apr 2006 20:44
Date: Mon, 03 Apr 2006 20:44
37 lines
1853 bytes
1853 bytes
Update:
Using Ethereal, I can see the full response from the service. It is
sending back 1513 bytes in a base64 envelope. the TDynByteArray only
reports a length of 1.
On Mon, 03 Apr 2006 15:36:27 -0400, Mr Fishken
<king_at_bobfish_dot_org> wrote:
>I've created a client to interface with the TerraService. All seems
>to work well except when I try and do a GetTile()
>
>The GetTile() returns a TDynByteArray whose length is always 1. I'm
>using BCB 6
>
>
>>- Code Snippet <-
> TileId *tid = new TileId();
> TByteDynArray image;
> TFileStream *out;
> BYTE *bytePtr;
> int iSize;
>
> tid->Theme = 1;
> tid->Scale = Scale16m;
> tid->Scene = 10;
> tid->X = 172;
> tid->Y = 1306;
>
> image =ts->GetTile(tid);
> // iSize is always1, no matter what tile i select
> iSize = Length(image);
> bytePtr = &image[0];
> out = new TFileStream("tile.jpg", fmCreate);
> out->Write(bytePtr, iSize);
> delete out;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads