V4RB BLOB HELP!

Charles Yeomans yeomans at desuetude.com
Wed Mar 12 13:29:18 CST 2003


This is a well-known problem.  The simplest solution is to write the 
data to a temp file and then open the file using 
FolderItem.OpenAsPicture.  Also, Christian Schmitz has been known to 
suggest that his MBS plugin provides functions to convert between 
strings and pictures.

Charles Yeomans

On Wednesday, March 12, 2003, at 01:06  PM, Jason Moehlman wrote:

> OK I am trying your suggestion to use ReadRawData and WriteRawData.
>
> These were the only ones I could find in the docs.  My problem is that 
> they only work with a string type and I am unsure how to convert that 
> into the format that the canvas control uses.
>
> The way I was trying to do it gives me an type mismatch and I cannot 
> cast a string only an object.
>
> Ex.
>
>         blobvalue=vcdb.Blobfield(db_images(i).name).readRawData
>         tmpint=len(blobvalue)
>         db_images(i).backdrop=blobvalue		// error here on type mismatch
>
> Please help if you have an idea.



More information about the Valentina mailing list