lpa
MIS
- Jan 30, 2003
- 11
I am using a database that has a field defined as image. The data in the field is binary.
Practically speaking, the only data that could be entered into the field is text (in the application the field actually opens an RTF editor). For what it is worth, I have spoken to the vendor about why then did this, and received no useful information.
I want to put the data on a Crystal Report (9.0 - another vendor limitation...) From what I read in the CR forums, it does not appear that I can do it there, at least with this version (possibly with purchase of 3rd party system).
So I am trying to accomplish it in the SQL database (SQL 2000). I reviewed post: 183-1213505 which describes converting the binary data to an array using dotnet and then re-building, but I'm stuck w/o dotnet, and don't have the experience or resources.
I've tried the following, but this really provided no useful output (just the 1's and 0's). I just put it in to try and illustrate the data:
SELECT dbo.drlicense.dr_nbr, dbo.drlicense.lic_dcmnt, CAST(CAST(CAST(dbo.drlicense.lic_dcmnt AS binary) AS bit) AS varchar) AS Expr1, dbo.doctor.dr_mnc
FROM dbo.drlicense INNER JOIN dbo.doctor ON dbo.drlicense.dr_nbr = dbo.doctor.dr_nbr
Any thoughts? Is the dotnet mechanism the only way?
Thank you -
Practically speaking, the only data that could be entered into the field is text (in the application the field actually opens an RTF editor). For what it is worth, I have spoken to the vendor about why then did this, and received no useful information.
I want to put the data on a Crystal Report (9.0 - another vendor limitation...) From what I read in the CR forums, it does not appear that I can do it there, at least with this version (possibly with purchase of 3rd party system).
So I am trying to accomplish it in the SQL database (SQL 2000). I reviewed post: 183-1213505 which describes converting the binary data to an array using dotnet and then re-building, but I'm stuck w/o dotnet, and don't have the experience or resources.
I've tried the following, but this really provided no useful output (just the 1's and 0's). I just put it in to try and illustrate the data:
SELECT dbo.drlicense.dr_nbr, dbo.drlicense.lic_dcmnt, CAST(CAST(CAST(dbo.drlicense.lic_dcmnt AS binary) AS bit) AS varchar) AS Expr1, dbo.doctor.dr_mnc
FROM dbo.drlicense INNER JOIN dbo.doctor ON dbo.drlicense.dr_nbr = dbo.doctor.dr_nbr
Any thoughts? Is the dotnet mechanism the only way?
Thank you -