Click or drag to resize

IDatabaseExportBlobToFile Method

Copy a blob to a file

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void ExportBlobToFile(
	int blobid,
	string filename
)

Parameters

blobid
Type: SystemInt32
long - The id of the blob to be exported
filename
Type: SystemString
String - the filename where the blob is to be stored
Examples

Import/Export picture

VB
dim objSO
set objSO = createobject("SuperOfficeDB.Database") 
If not (objSO is nothing) Then
    objSO.login "<username>", "<password>" 
    blobId = objSO.ImportBlobFromFile ("jpg", "c:\MyPicture.jpg")

    objSO.ExportBlobToFile blobId, "c:\exportedMyPicture.jpg"

else
    msgbox "Unable to log in"
end if
set objSO = Nothing

See Also