Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Problem with display a bmp file in report...

4 posts in Objects Last posting was on 2007-01-15 09:24:30.0Z
Vicky Posted on 2007-01-08 07:39:49.0Z
Sender: 33aa.45821190.1804289383@sybase.com
From: Vicky
Newsgroups: sybase.public.powerbuilder.objects
Subject: Problem with display a bmp file in report...
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45a20354.2de4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 8 Jan 2007 00:39:49 -0700
X-Trace: forums-1-dub 1168245589 10.22.241.41 (8 Jan 2007 00:39:49 -0700)
X-Original-Trace: 8 Jan 2007 00:39:49 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9157
Article PK: 736333

hi all,

i would like to ask can i display a bmp file as a picture
object in report? but the problem is the bmp file not from
local drive, it should be from a website instead...

i'd tried to put C:\abc.bmp in the File Name properties, but
can i put a website link in that properties?? and any other
setting i need to set as well...

many thanks in advance

vicky


André Tobiassen <a03t03 Posted on 2007-01-08 13:13:22.0Z
Subject: Re: Problem with display a bmp file in report...
From: =?iso-8859-15?Q?Andr=E9_Tobiassen?= <a03t03@bbl.no_spam>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
References: <45a20354.2de4.1681692777@sybase.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op.tlt86lb7ogymit@at.bbl.no>
User-Agent: Opera Mail/9.10 (Win32)
NNTP-Posting-Host: box80-64-192-234.static.sdsl.no
X-Original-NNTP-Posting-Host: box80-64-192-234.static.sdsl.no
Date: 8 Jan 2007 06:13:22 -0700
X-Trace: forums-1-dub 1168265602 80.64.192.234 (8 Jan 2007 06:13:22 -0700)
X-Original-Trace: 8 Jan 2007 06:13:22 -0700, box80-64-192-234.static.sdsl.no
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9158
Article PK: 736330

I don't think you can.

However I would not use a web adress in the first place, mostly because
the web server or the application users internet access could be down, and
then the picture would not display.

You could of course download the picture to the users temporary folder
first, and then display the picture from that location. This would also
give you a much better way of controlling the download, and give the user
feedback (if it fails). Use a temporary picture on the report itself. And
you could use the datawindow picture object's tag property to store the
url (if you have to bind the URL it to the report).

Regards


On Mon, 08 Jan 2007 08:39:49 +0100, <Vicky> wrote:





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


Vicky Posted on 2007-01-10 01:41:32.0Z
Sender: 5099.45a450e0.1804289383@sybase.com
From: Vicky
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Problem with display a bmp file in report...
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45a4525c.50a3.1681692777@sybase.com>
References: <op.tlt86lb7ogymit@at.bbl.no>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 9 Jan 2007 18:41:32 -0700
X-Trace: forums-1-dub 1168396892 10.22.241.41 (9 Jan 2007 18:41:32 -0700)
X-Original-Trace: 9 Jan 2007 18:41:32 -0700, 10.22.241.41
Lines: 41
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9167
Article PK: 736339

thanks André,

would u mind to tell in detials how to download the file to
users' temp folder and display the picture from that
location? and how to handle the object's property if i don't
know the filename or dynamic filename?

many thanks for your help...

rgds,
vicky

> I don't think you can.
>
> However I would not use a web adress in the first place,
> mostly because the web server or the application users
> internet access could be down, and then the picture
> would not display.
>
> You could of course download the picture to the users
> temporary folder first, and then display the picture
> from that location. This would also give you a much
> better way of controlling the download, and give the user
> feedback (if it fails). Use a temporary picture on the
> report itself. And you could use the datawindow picture
> object's tag property to store the url (if you have to
> bind the URL it to the report).
>
> Regards
>
>
> On Mon, 08 Jan 2007 08:39:49 +0100, <Vicky> wrote:
>
>
>
>
>
> --
> Using Opera's revolutionary e-mail client:
> http://www.opera.com/mail/


André Tobiassen <a03t03 Posted on 2007-01-15 09:24:30.0Z
Subject: Re: Problem with display a bmp file in report...
From: =?iso-8859-15?Q?Andr=E9_Tobiassen?= <a03t03@bbl.no_spam>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
References: <op.tlt86lb7ogymit@at.bbl.no> <45a4525c.50a3.1681692777@sybase.com>
Content-Transfer-Encoding: 8bit
Message-ID: <op.tl6w95hkogymit@at.bbl.no>
User-Agent: Opera Mail/9.10 (Win32)
NNTP-Posting-Host: box80-64-192-234.static.sdsl.no
X-Original-NNTP-Posting-Host: box80-64-192-234.static.sdsl.no
Date: 15 Jan 2007 02:24:30 -0700
X-Trace: forums-1-dub 1168856670 80.64.192.234 (15 Jan 2007 02:24:30 -0700)
X-Original-Trace: 15 Jan 2007 02:24:30 -0700, box80-64-192-234.static.sdsl.no
Lines: 33
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9188
Article PK: 736356

Check out inet, and internetresult objects in PB Help (From PB 6.5).

Use the inet.geturl to get the image data, via the
internetresult.internetdata (overridden) function. Save the data (blob)
using file functions to a temporary file.

I use the gettemppath windows api to get the users temporary folder,
declared as:

Function ulong ef_GetTempPath ( ulong nBufferLength, ref String lpBuffer )
library "KERNEL32.DLL" alias for "GetTempPathA;Ansi" // ;Ansi for Ansi
implementation in PB 10+

(See http://msdn2.microsoft.com/en-us/library/aa364992.aspx)

However I dont understand what you mean by "how to handle the object's
property if i don't
know the filename or dynamic filename?"


Regards
André


On Wed, 10 Jan 2007 02:41:32 +0100, <Vicky> wrote:





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/