Click or drag to resize

ISOPictureReadFromFile Method

Read picture from file into database. Supports GIF, JPG, BMP formats.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void ReadFromFile(
	string filename
)

Parameters

filename
Type: SystemString
Full path to file
Examples

[New Example]

VB
Dim db As New Database
If db.Login("<username>", "<password>") Then
    Dim person As SOPerson = db.GetPerson(7)
    If Not person.HasPicture Then
        person.Picture.ReadFromFile("c:\torrdal.jpg")
    End If
    person.Save()
Else
    MsgBox("failed to log in")
End If

See Also