Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readtext command
Message
From
01/10/2003 13:10:02
Mark Heck
Future Direct Internet
Florida, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Readtext command
Miscellaneous
Thread ID:
00833898
Message ID:
00833898
Views:
55
Hello,
I'm trying to get data out if an image field that was text. I can get the binary information then manually use the convert line to get the text...

Here is what I have:
CREATE PROCEDURE GetChunkData
@bodyID uniqueidentifier,
@chunkindex int,
@chunksize int
AS
BEGIN
-- Find and retrieve chunk data from chunk table
-- returns the first 256 bytes of the field
DECLARE @val binary(16)

SELECT @val = TEXTPTR(chunkdata) FROM relaystorebodychunks where bodyid = @bodyID order by chunkid

READTEXT relaystorebodychunks.chunkdata @val @chunkindex @chunksize

--SELECT CONVERT(varchar(8000), !!covert the READTEXT line!!)

END
GO
Reply
Map
View

Click here to load this message in the networking platform