PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: Can Not Retrieve Image Greater Than 4k
Date: Feb 13 1996 6:40AM

> From: Richard Ruth 
0 PL44] for mpeppler@itf.ch
> 
> I have a table that has an id column (int) and an image (image).  When I use the following perl script  
> to retrieve the image and place it in a file, I only receive the first 4096 bytes (assuming that the  
> image is longer than 4k).
> 
> Any suggestions on how to retrieve the Entire image would be appreciated.
> 
> I am using Perl 5.001m and Sybperl 2.0 compiled with sybase lib 4.6.
> 

With sybperl 2.0, you need to do something like:

$F->dbcmd("set textsize 64000"); # (or whatever...)
$F->dbsqlexec; $F->dbresults;

As of 2.03, you can do:

$F->dbsetopt(DBTEXTSIZE, "64000");  # or whatever size you wish...

See also the DBTEXTLIMIT option in the DBlib manual.

Michael