Solved? - Re: Continued troubles with VPicture and V4RB

Gary Edge valentina at panamind.com
Thu Jan 29 15:10:55 CST 2004


   I've found a solution to downloading jpgs and saving them to VPicture:

   f  = downloaded jpg's temporary local file
   p = f.openaspicture
   tempf = GetTemporaryFolderItem
   tempf.SaveAsPicture p
   p = tempf.openaspicture

then:

c.picturefield("lpicture").setpicture(p)

This seems to work!
--

Best Regards,
Gary

--
On Jan 29, 2004, at 1:03 PM, Ruslan Zasukhin wrote:

> on 1/29/04 8:02 PM, Gary Edge at valentina at panamind.com wrote:
>
>> On Jan 29, 2004, at 11:44 AM, Ruslan Zasukhin wrote:
>>
>>>
>>> What if simply
>>>
>>>    b = f.openasbinaryFile
>>>    ps = b.read(b.length)
>>>
>>>    c.pictureField("lpicture").PutFormatedPict(20,ps)
>>>
>>>
>>>
>> This didn't work either.
>>
>> I even tried accessing the database directly instead of through a
>> cursor. No luck.
>>
>> Ruslan do you have an example of the VPicture field being used in 
>> V4RB?
>
> Yes. example2
>
> -- 
> 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
> -------------------------------------------------------------
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>



More information about the Valentina mailing list