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.

Configuring BDK/Serving pdf to the browser

2 posts in General Discussion (old) Last posting was on 2000-03-19 18:01:44.0Z
Paula Posted on 2000-03-17 23:23:08.0Z
Newsgroups: sybase.public.easerver
From: "Paula" <dpbosch@sprynet.com>
Organization: 12.33.164.2
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Configuring BDK/Serving pdf to the browser
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 17 Mar 2000 18:23:08 -0500
Lines: 28
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_xXKzAfGk$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26151
Article PK: 156827

Java Developer...New to PowerJ...Please help...

Can anyone know how to configure the BDK in the PowerJ IDE? We've created a bean
that encapsulates the Jaguar connection and it works when called from a JSP
page, but I can't see it in the beanbox. I've set the path in
PowerJ/Tools/Properties/JDK Configuration/Sun BDK.

Is there a way to edit the PowerJ generated code?

I'm returning a pdf to the browser from a JSP page. response.binaryWrite() does
not seem to work with large files. Is the size of the pdf exceeding the range of
the primitive used internally by binaryWrite()? Any ideas? Code below..

resp.setContentType("application.pdf");
resp.setContentLength(l_str.length());
byte[] b = new byte[l_str.length())];
resp.binaryWrite(b);

Is there a way to add a method without first clicking the add method menu
option. If I just type new methods into the java file, PowerJ doesn't seem to
pick the new methods up.

Thanks, Paula







---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Carson Hager[Team Sybase] Posted on 2000-03-19 18:01:44.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Configuring BDK/Serving pdf to the browser
Date: Sun, 19 Mar 2000 18:01:44 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 61
NNTP-Posting-Host: user-33qs0hq.dialup.mindspring.com 199.174.2.58
Message-ID: <347_38d515ad.2367814@forums.sybase.com>
References: <347_xXKzAfGk$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26111
Article PK: 156113

Are you sure that you're getting the whole pdf file in the JSP? Is
this possibly a PDF file being pulled from an ASE database? If so, it
could be that ASE is truncating the data. When using ASE, you set the
max size for blob data and if you're blob is greater than the max, ASE
simply sends up to the max. This could very well be the problem. If
my description matches your setup, let me know and I'll provide the
solution.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Fri, 17 Mar 2000 18:23:08 -0500, "Paula" <dpbosch@sprynet.com>

wrote:

>Java Developer...New to PowerJ...Please help...
>
>Can anyone know how to configure the BDK in the PowerJ IDE? We've created a bean
>that encapsulates the Jaguar connection and it works when called from a JSP
>page, but I can't see it in the beanbox. I've set the path in
>PowerJ/Tools/Properties/JDK Configuration/Sun BDK.
>
>Is there a way to edit the PowerJ generated code?
>
>I'm returning a pdf to the browser from a JSP page. response.binaryWrite() does
>not seem to work with large files. Is the size of the pdf exceeding the range of
>the primitive used internally by binaryWrite()? Any ideas? Code below..
>
>resp.setContentType("application.pdf");
>resp.setContentLength(l_str.length());
>byte[] b = new byte[l_str.length())];
>resp.binaryWrite(b);
>
>Is there a way to add a method without first clicking the add method menu
>option. If I just type new methods into the java file, PowerJ doesn't seem to
>pick the new methods up.
>
>Thanks, Paula
>
>
>
>
>
>
>
>---== Posted via the PFCGuide Web Newsreader ==---
>http://www.pfcguide.com/_newsgroups/group_list.asp

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com