Article View: borland.public.cppbuilder.webservices.soap
Article #61Re: TerraService Client
From: 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;
Technical Details
Message-ID:
<872332d11vvubqumuuverdh27e5fnvs7r5@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<b4u232lg3u7tisr19dmiqj599n45orfv7h@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,672b419afe645710 X-Google-Attributes: gid11096a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Mr Fishken <king_at_bobfish_dot_org> Newsgroups: borland.public.cppbuilder.webservices.soap Subject: Re: TerraService Client Date: Mon, 03 Apr 2006 16:44:48 -0400 Message-ID: <872332d11vvubqumuuverdh27e5fnvs7r5@4ax.com> References: <b4u232lg3u7tisr19dmiqj599n45orfv7h@4ax.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 70.184.243.247 X-Trace: newsgroups.borland.com 1144096922 70.184.243.247 (3 Apr 2006 13:42:02 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail