4D Blog

Home Product 4D View Pro: Import/ Export Documents in Blob Format

4D View Pro: Import/ Export Documents in Blob Format

October 24, 2023

Product

For those of you working with larger and more complex 4D View Pro documents, we understand the performance concerns that arise. Starting from the 4D v20 R3, we offer a new blob format that enables you to store compressed documents in your database with the same performance as the .sjs format.

export Blob

To export your document as Blob, you need to use the VP EXPORT TO BLOB command:

VP EXPORT TO BLOB("ViewProArea"; {formula: Formula(VPBlobCallback)})

Note that this command is asynchronous. You need to create a method, VPBlobCallback in our example, to use the export result and supply a table:

#DECLARE($area : Text; $data : 4D.Blob; $paramters : Object; $status : Object)
var $myEntity : cs.myTableEntity

if ($status.success)
   // Save the document in a table
   $myEntity:=ds.myTable.new()
   // $data: blob document
   $myEntity.blob:=$data
   $myEntity.save()
end if

Import blob

To import your Blob document, you need to use the VP IMPORT FROM BLOB command:

var $myBlobDocument:4D.Blob:=ds.myTable.all().first().blob

VP IMPORT FROM BLOB("ViewProArea"; $myBlobDocument)

Explore the documentation for further insights into the new features!

Discuss

Tags 21, 4D View Pro, Document creation, Export, Import, Spreadsheet, v20 R3

Latest related posts

  • May 20, 2025

    Automatic Refresh of OEM Build Licenses

  • May 16, 2025

    New class to handle incoming TCP connections

  • April 29, 2025

    Discover your AI-powered writing assistant in 4D Write Pro

Fabrice Mainguené
Fabrice Mainguené
• Product Owner •Fabrice Mainguené joined 4D Program team in November, 2016. As a Product Owner, he is in charge of writing the user stories then translating it to functional specifications. His role is also to make sure that the feature implementation delivered is meeting the customer need.After obtaining a Bachelor degree in Computer Science at CNAM, Fabrice joined a small software publishing company as a Windev developer. Then he worked for different companies in industry and trade areas as a Windev and web developer as well as technical advisor on new features.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor Workbook

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor Workbook
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy