Save image from WebImageView to sqlite

Hi
how i save WebImageView to my DB on sqlite

Something like this:

[code]Dim db As SQLiteDatabase

‘assumning the database is already connected’

Dim rec As New DatabaseRecord
Dim bs As BinaryStream
Dim pre_sb As String
Dim mb As MemoryBlock

bs = BinaryStream.Open(arq, False)
pre_sb = bs.Read(bs.Length)
mb = pre_sb

rec.Column(“Object”) = mb 'make sure column name matches whatever is on your table

db.InsertRecord(“your_table”, rec)[/code]

ok
thanks

You are saving image from a webimageview…

So you should use an interim picture object, say ‘pic’, and have it equal to webimageview.picture

then the memoyblock is picture.getdata