Upload and save to Db Binary Files

Hi
if any example to upload a binary file and save it to the data base like PostgreSQL

thanks

look in the examples for the file uploader example. Once the FilesUploaded event fires you just use a BinaryStream to read the content, possibly encode it (hex or base64) and then write the data to a field.

ok
Thanks

This is the code i use for Picture but what have to change for binary files
I am a litter confuse with web file upload

Dim imageData as String
Dim Rs As RecordSet
Dim Db As DatabaseRecord
Dim bs as BinaryStream
Dim f as FolderItem
Dim p as picture

If p <> NIL and droppicture <> Nil then //<< == (but hire is empty )
f = SpecialFolder.Temporary.Child( “Temp_Image.jpg” )
p.Save(f,0,-1)
bs=BinaryStream.Open(f,False)
If bs <> NIL then
imageData = bs.read(bs.length )
bs.close
Db.BlobColumn(“Foto”) = imageData
End if