> I have a photo processing ActiveX component (PhotoPro Gold by pegasus)
> which has a method called "loadBlob" which takes a unicode string
> containing a picture and displays it. Here is the signature:
>
> procedure TPhotoProGold.LoadBlob(var pBlobData: WideString; BlobSize:
> Integer);
>
> Here is the VB code that works.
>
> Dim BlobSize As Long
> Dim ReadData As String
>
> BlobSize = Data1.Recordset(DBField$).FieldSize()
> If (BlobSize > 0) Then
> ReadData = Data1.Recordset(DBField$).GetChunk(0, BlobSize)
> Photo1.LoadBlob ReadData, BlobSize ' <<<<--------
> End If
>
> My question is, how do i do this in either Delphi? I have a pointer to
> the picture in memory. How do I convert this to a valid unicode string to
> pass it as a parameter to the loadBlob method on the PhotoProGold
> component? Ive tried the various string conversion functions but I didn't
> get any to work. I think in VB this conversion is automatic?
>
> Merry Xmas,
>
> .-->
>
> Wilfred Verkley
> Software Developer
> Software Development
> Wang NZ Ltd
> DDI 9-3087788
> Fax 9-3064600
> Email [EMAIL PROTECTED]
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz