IDatabaseExportBlobToFile Method |
Copy a blob to a file
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxvoid ExportBlobToFile(
int blobid,
string filename
)
Sub ExportBlobToFile (
blobid As Integer,
filename As String
)
Dim instance As IDatabase
Dim blobid As Integer
Dim filename As String
instance.ExportBlobToFile(blobid, filename)
void ExportBlobToFile(
[InAttribute] int blobid,
[InAttribute] 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
ExamplesImport/Export picture
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