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.

Pocket PowerBuilderÔÚWINCEÉϵijÌÐòÏÔʾ²»ÁËJPGͼƬÎļþ

6 posts in iAnywhere General Discussion (Chinese) Last posting was on 2006-05-26 06:15:00.0Z
Jimmy Chen Posted on 2005-10-29 15:38:52.0Z
From: "Jimmy Chen" <Chenwf@e-future.com.cn>
Newsgroups: ianywhere.public.chinese.general
Subject: Pocket PowerBuilderÔÚWINCEÉϵijÌÐòÏÔʾ²»ÁËJPGͼƬÎļþ
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 219.140.213.106
X-Original-NNTP-Posting-Host: 219.140.213.106
Message-ID: <4363978c@forums-1-dub>
Date: 29 Oct 2005 08:38:52 -0700
X-Trace: forums-1-dub 1130600332 219.140.213.106 (29 Oct 2005 08:38:52 -0700)
X-Original-Trace: 29 Oct 2005 08:38:52 -0700, 219.140.213.106
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.chinese.general:442
Article PK: 371

¸÷λ:
ÎÒÒª¿ª·¢Ò»ÏÂÕÆÉϵçÄÔµÄÈí¼þ,ÆäÖÐÒ»¸ö¹¦ÄܾÍÊÇä¯ÀÀijĿ¼ÖеÄͼƬ,ËäȻ˵PPB
²»Ö§³ÖJPGÎļþ,µ«ÎÒÔÚWINDOWS 2000ÏÂͨ¹ýÉèÖÃͼƬ¿Ø¼þµÄPictureName¿ÉÒÔÕý³£ÏÔʾ
JPGͼƬÎļþ,¶øÎÊÌâÀ´ÁË,ÔÚCEÉÏÖ´Ðд˳ÌÐòʱ²»ÄÜÕý³£ÏÔʾJPGͼƬÎļþ!ÆäËü¸ñʽÈç
BMP,GIF¶¼ÊÇÕýÈ·µÄ,ÕÆÉϵçÄÔµÄÄÚ´æÌ«ÉÙ,BMP¸ñʽ̫´ó,Ö»ºõ²»¿ÉÄÜÓÃ;¶øÎÒµÄÈí¼þÓÖÒª
ÇóʹÓÃÖÊÁ¿±È½Ï¸ßµÄͼƬ,GIF¸ñʽҲ²»ÄÜʹÓÃ.
ÎÒʹÓõÄÊÇPPB1.5,²Ù×÷ϵͳÊÇWINCE4.0.ÎÒµÄͼƬ·¾¶¶¼ÊÇÕýÈ·µÄ.
ÎÒʹÓùý°ÑͼƬÎļþ·ÅÈëµ½ASAÊý¾Ý¿â±íÖеÄLONG×Ö¶ÎÖÐ,È»ºóʹÓÃSELECTBLOBÓï·¨
È¡³öÀ´,ÔÙʹÓÃp_1.SetPicture(lb_photo)µÄ·½Ê½,½á¹û»¹ÊÇÔÚWINDOWSÏÂÔËÐÐʱ¿ÉÒÔÏÔ
ʾ,µ«ÔÚCEÉÏÈ´ÏÔʾ²»ÁË!
Çë¸÷λ°ï°ïæ,ÓÐʲô·½·¨¿ÉÒÔ½â¾ö´ËÎÊÌâ?
лл!

Chenwf


Raymond.Kwong Posted on 2005-11-01 23:46:52.0Z
MIME-Version: 1.0
X-MIMETrack: Serialize by Notes Client on Raymond Kwong/SYBASE(Release 6.5|September 26, 2003) at 11/01/2005 07:31:26 PM, Serialize complete at 11/01/2005 07:31:26 PM, Serialize by Notes Client on Raymond Kwong/SYBASE(Release 6.5|September 26, 2003) at 11/01/2005 07:37:00 PM, Serialize complete at 11/01/2005 07:37:00 PM
From: Raymond.Kwong@sybase.com
Subject: Re: Pocket PowerBuilderÔÚWINCEÉϵijÌÐòÏÔʾ²»ÁËJPGͼƬÎļþ
Newsgroups: ianywhere.public.chinese.general
References: <4363978c@forums-1-dub>
X-Newsreader: Lotus Notes Release 6.5 September 26, 2003
Content-Type: multipart/alternative; boundary="=_alternative 00036359852570AD_="
NNTP-Posting-Host: rkwong-xp.sybase.com
X-Original-NNTP-Posting-Host: rkwong-xp.sybase.com
Message-ID: <43680c7c$1@forums-1-dub>
Date: 1 Nov 2005 16:46:52 -0700
X-Trace: forums-1-dub 1130892412 10.25.98.184 (1 Nov 2005 16:46:52 -0700)
X-Original-Trace: 1 Nov 2005 16:46:52 -0700, rkwong-xp.sybase.com
Lines: 21
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.chinese.general:443
Article PK: 366


本新闻组所能回答的是iAnywhere产品的问题

Pocket PowerBuilder并不是iAnywhere产品,故此我已转达这问题到sybase.public.pocketpowerbuilder (pocketpowerbuilder blob problem from ianywhere.public.chinese.general). 那是一个英文新闻组,不便之处,敬请原谅


Raymond.Kwong Posted on 2005-11-03 18:22:49.0Z
MIME-Version: 1.0
X-MIMETrack: Serialize by Notes Client on Raymond Kwong/SYBASE(Release 6.5|September 26, 2003) at 11/03/2005 01:28:50 PM, Serialize complete at 11/03/2005 01:28:50 PM, Serialize by Notes Client on Raymond Kwong/SYBASE(Release 6.5|September 26, 2003) at 11/03/2005 02:17:28 PM, Serialize complete at 11/03/2005 02:17:28 PM
From: Raymond.Kwong@sybase.com
Subject: Re: Pocket PowerBuilderÔÚWINCEÉϵijÌÐòÏÔʾ²»ÁËJPGͼƬÎļþ
Newsgroups: ianywhere.public.chinese.general
References: <4363978c@forums-1-dub>
X-Newsreader: Lotus Notes Release 6.5 September 26, 2003
Content-Type: multipart/alternative; boundary="=_alternative 0069F879852570AE_="
X-Original-NNTP-Posting-Host: rkwong-xp.sybase.com
Message-ID: <436a624a$1@forums-2-dub>
X-Original-Trace: 3 Nov 2005 11:17:30 -0700, rkwong-xp.sybase.com
Lines: 72
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 Nov 2005 11:17:31 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 Nov 2005 11:22:49 -0700
X-Trace: forums-1-dub 1131045769 10.22.108.75 (3 Nov 2005 11:22:49 -0700)
X-Original-Trace: 3 Nov 2005 11:22:49 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!forums-2-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.chinese.general:444
Article PK: 515


在JPG的情况下,你需要先从数据库那里提取Blob字段,写进临时的.JPG档案里,
然后才设置图片控件。

希望下列的例子会有一点帮助:


IF parent.p_1.SetPicture(lb_pic) < 0 THEN
 //Picture is a .JPG associated so needs to be written to temp file
ll_flen = Len(lb_pic)

 IF IsNull(ll_flen) or ll_flen = 0 THEN
  RETURN
 END IF

 // Determine how many times to call FileWrite
 IF ll_flen > 32765 THEN
     IF Mod(ll_flen, 32765) = 0 THEN
     li_loops = ll_flen/32765
     ELSE
     li_loops = (ll_flen/32765) + 1
     END IF
 ELSE
     li_loops = 1
 END IF

 li_FileNum = FileOpen("ia_pic_temp.jpg",&
         StreamMode!, Write!, Shared!, Replace!)

 cur_pos = 1

 // Write the file
 FOR li_sub = 1 to li_loops
   ll_bytes_write = FileWrite(li_FileNum, BlobMid(lb_pic, cur_pos,
cur_pos+32765))
   cur_pos+=32765
 NEXT

 FileClose(li_FileNum)

 parent.p_1.picturename = "ia_pic_temp.jpg"

END IF


cwf Posted on 2006-05-08 04:57:40.0Z
From: "cwf" <cwfok@sina.com>
Newsgroups: ianywhere.public.chinese.general
References: <4363978c@forums-1-dub> <436a624a$1@forums-2-dub>
Subject: 问题还是没有解决.:)
Lines: 162
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AC_01C6729E.E810EB60"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Original-NNTP-Posting-Host: 61.183.127.222
Message-ID: <445ecfbe@forums-2-dub>
X-Original-Trace: 7 May 2006 21:57:34 -0700, 61.183.127.222
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 May 2006 21:57:37 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 May 2006 21:57:40 -0700
X-Trace: forums-1-dub 1147064260 10.22.108.75 (7 May 2006 21:57:40 -0700)
X-Original-Trace: 7 May 2006 21:57:40 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.chinese.general:510
Article PK: 17300

Raymond.Kwong:
    按照你的方法试了,使用BLOB变量提取数据后,写到临时的.jpg文件中,再设置图片控件的picturename,但还是显示不了此文件.
<Raymond.Kwong@sybase.com> 写入消息新闻:436a624a$1@forums-2-dub...

在JPG的情况下,你需要先从数据库那里提取Blob字段,写进临时的.JPG档案里,
然后才设置图片控件。

希望下列的例子会有一点帮助:


IF parent.p_1.SetPicture(lb_pic) < 0 THEN
 //Picture is a .JPG associated so needs to be written to temp file
ll_flen = Len(lb_pic)

 IF IsNull(ll_flen) or ll_flen = 0 THEN
  RETURN
 END IF

 // Determine how many times to call FileWrite
 IF ll_flen > 32765 THEN
     IF Mod(ll_flen, 32765) = 0 THEN
     li_loops = ll_flen/32765
     ELSE
     li_loops = (ll_flen/32765) + 1
     END IF
 ELSE
     li_loops = 1
 END IF

 li_FileNum = FileOpen("ia_pic_temp.jpg",&
         StreamMode!, Write!, Shared!, Replace!)

 cur_pos = 1

 // Write the file
 FOR li_sub = 1 to li_loops
   ll_bytes_write = FileWrite(li_FileNum, BlobMid(lb_pic, cur_pos,
cur_pos+32765))
   cur_pos+=32765
 NEXT

 FileClose(li_FileNum)

 parent.p_1.picturename = "ia_pic_temp.jpg"

END IF


Raymond.Kwong Posted on 2006-05-11 00:07:26.0Z
MIME-Version: 1.0
X-MIMETrack: Serialize by Notes Client on Raymond Kwong/SYBASE(Release 6.5|September 26, 2003) at 05/10/2006 07:58:56 PM, Serialize complete at 05/10/2006 07:58:56 PM, Serialize by Notes Client on Raymond Kwong/SYBASE(Release 6.5|September 26, 2003) at 05/10/2006 08:05:34 PM, Serialize complete at 05/10/2006 08:05:34 PM
From: Raymond.Kwong@sybase.com
Subject: Re: 问题还是没有解决.:)
Newsgroups: ianywhere.public.chinese.general
References: <4363978c@forums-1-dub> <436a624a$1@forums-2-dub> <445ecfbe@forums-2-dub>
X-Newsreader: Lotus Notes Release 6.5 September 26, 2003
Content-Type: multipart/alternative; boundary="=_alternative 000082C08525716B_="
NNTP-Posting-Host: rkwong-xp.sybase.com
X-Original-NNTP-Posting-Host: rkwong-xp.sybase.com
Message-ID: <4462803e$1@forums-1-dub>
Date: 10 May 2006 17:07:26 -0700
X-Trace: forums-1-dub 1147306046 10.25.98.158 (10 May 2006 17:07:26 -0700)
X-Original-Trace: 10 May 2006 17:07:26 -0700, rkwong-xp.sybase.com
Lines: 26
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.chinese.general:511
Article PK: 536


既然如此,我建议阁下连络本公司在中国的技术支持服务了。以下是本公司在中国的技术支持服务联络电话


+86 (010) 6856 8488
或使用以下网址的资料联络本公司

http://www.sybase.com.cn/gvswse/site/china/about_us/buy_product.jsp


cwf Posted on 2006-05-26 06:15:00.0Z
From: "cwf" <cwfok@sina.com>
Newsgroups: ianywhere.public.chinese.general
References: <4363978c@forums-1-dub> <436a624a$1@forums-2-dub> <445ecfbe@forums-2-dub> <4462803e$1@forums-1-dub>
Subject: 升级到PPB2.0后问题就得到解决了
Lines: 86
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01C680CE.79911F50"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Original-NNTP-Posting-Host: 61.183.127.222
Message-ID: <44769c74@forums-2-dub>
X-Original-Trace: 25 May 2006 23:13:08 -0700, 61.183.127.222
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 25 May 2006 23:13:10 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 25 May 2006 23:15:00 -0700
X-Trace: forums-1-dub 1148624100 10.22.108.75 (25 May 2006 23:15:00 -0700)
X-Original-Trace: 25 May 2006 23:15:00 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.chinese.general:517
Article PK: 535

 如题,谢谢Raymond.Kwong.
<Raymond.Kwong@sybase.com> 写入消息新闻:4462803e$1@forums-1-dub...

既然如此,我建议阁下连络本公司在中国的技术支持服务了。以下是本公司在中国的技术支持服务联络电话


+86 (010) 6856 8488
或使用以下网址的资料联络本公司

http://www.sybase.com.cn/gvswse/site/china/about_us/buy_product.jsp