picture and text insert

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Apr 11 09:47:57 CDT 2007


On 11/4/07 2:45 PM, "Kim Kohen" <kim at webguide.com.au> wrote:

> G'day Ruslan,
> 
>> curs = db.SqlSelect( "SELECT fldPict FROM T WHERE false" )
>> 
>>     curs.SetBlank()
>>     curs.PictureField( "fldPict" ).SavePictureAs( pict )
>>     curs.AddRecord()
>>  Server get ready JPG
>> and just save it to db on disk.
> €€€€€
> good news, bad news and a question.
> 
> Good news:  Using this I can save a pict file which came with the
> example app (renamed to .jpeg to avoid filetype issues)
> 
> Bad news: It will not save a normal jpeg. It creates the db row but
> the g_preview field is <empty> in VStudio (The pict shows as a
> Picture in VStudio.)

Wait, EXISTED JPG you should not save with this method.
    Hmm, good idea to improve it :)
 
ALREADY EXISTED JPGs can be stored directly using VBLOB class methods
    WriteData()

> Question: Any idea what would be causing this problem? The picture
> being passed is definitely a valid RB picture object.

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list