VBlob.readRawdata() problem

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jun 12 10:11:22 CDT 2003


on 6/12/03 2:17, Chuck at rwc1717 at shaw.ca wrote:

> Hi Ruslan:

> I have been able to create a VBlob field and both set and get a picture using
> vblob.SetPicture() and vblob.GetPicture().

Chuck, 

DO NOT use this functions!!!
They are old and and to be removed.


> I checked the size = vblob.getdata(size) of this image and found it to be 3754
> bytes.  BTW in your example you have 'dim size as Long'...should it not be
> 'dim size 
> as integer'....as long is not a data type in RB?

In docs? Yes correct,
I need fix it.

> I then tried to save using writeRawData() using the string created by
> Monkeybread PictureToString() function.

> I again checked the size = GetData(size) and found the bytes were reduced
> to 3270 bytes..a good sign...as I want to try and store the image generically.

> Christian's literature indicates that this is a good cross-platform solution.



> The problem I am having is with the s = vblob.readRawData(size)...RB tells me
> that I have mismatched the types...ie:vblob.readRawData(size) is not a string.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list