diff --git a/examples/sqlite/test_sqlite_music/glom_musiccollection21.db b/examples/sqlite/test_sqlite_music/glom_musiccollection21.db
index f161c4c..aa24093 100644
Binary files a/examples/sqlite/test_sqlite_music/glom_musiccollection21.db and b/examples/sqlite/test_sqlite_music/glom_musiccollection21.db differ
diff --git a/examples/sqlite/test_sqlite_music/test_sqlite_music.glom b/examples/sqlite/test_sqlite_music/test_sqlite_music.glom
index 7cfb161..9480064 100644
--- a/examples/sqlite/test_sqlite_music/test_sqlite_music.glom
+++ b/examples/sqlite/test_sqlite_music/test_sqlite_music.glom
@@ -150,6 +150,10 @@
         <calculation/>
         <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
       </field>
+      <field name="picture" type="Image" title="Picture">
+        <calculation/>
+        <formatting format_thousands_separator="true" format_decimal_places="2"/>
+      </field>
     </fields>
     <relationships>
       <relationship name="albums" key="artist_id" other_table="albums" other_key="artist_id" auto_create="true" allow_edit="true" title="Albums"/>
@@ -188,6 +192,9 @@
                 <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
               </data_layout_item>
             </data_layout_group>
+            <data_layout_item name="picture" editable="true" use_default_formatting="true">
+              <formatting format_thousands_separator="true" format_decimal_places="2"/>
+            </data_layout_item>
           </data_layout_group>
         </data_layout_groups>
       </data_layout>
@@ -204,7 +211,7 @@
               <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
             </data_layout_item>
             <data_layout_item name="somenum" editable="true" use_default_formatting="true">
-              <formatting format_thousands_separator="true" format_decimal_places="2"/>
+              <formatting/>
             </data_layout_item>
             <data_layout_item name="comments" editable="true" use_default_formatting="true">
               <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index d671589..047e6eb 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -676,6 +676,8 @@ void Frame_Glom::on_menu_file_export()
 //TODO: Reduce copy/pasting in these export_data_to_*() methods:
 void Frame_Glom::export_data_to_vector(Document::type_example_rows& the_vector, const FoundSet& found_set, const Document::type_list_layout_groups& sequence)
 {
+  std::cout << "Frame_Glom::export_data_to_vector()" << std::endl;
+
   type_vecLayoutFields fieldsSequence = get_table_fields_to_show_for_sequence(found_set.m_table_name, sequence);
 
   if(fieldsSequence.empty())
@@ -766,7 +768,7 @@ void Frame_Glom::export_data_to_string(Glib::ustring& the_string, const FoundSet
 
             //if(layout_item->m_field.get_glom_type() == Field::TYPE_IMAGE) //This is too much data.
             //{
-             //std::cout << "  field name=" << layout_item->get_name() << ", value=" << layout_item->m_field.sql(value) << std::endl;
+             std::cout << "  field name=" << layout_item->get_name() << ", value=" << layout_item->get_full_field_details()->to_file_format(value) << std::endl;
             //}
         }
 
@@ -822,6 +824,7 @@ void Frame_Glom::export_data_to_stream(std::ostream& the_stream, const FoundSet&
             }
 
             const Glib::ustring field_text = field->to_file_format(value);
+            std::cout << "  field name=" << layout_item->get_name() << ", field_text=" << field_text << std::endl;
 
             if(layout_item->get_glom_type() == Field::TYPE_IMAGE) //This is too much data.
             {
diff --git a/glom/libglom/data_structure/field.cc b/glom/libglom/data_structure/field.cc
index 957ee66..7dd547d 100644
--- a/glom/libglom/data_structure/field.cc
+++ b/glom/libglom/data_structure/field.cc
@@ -289,16 +289,36 @@ Glib::ustring Field::to_file_format(const Gnome::Gda::Value& value) const
 
 Glib::ustring Field::to_file_format(const Gnome::Gda::Value& value, glom_field_type glom_type)
 {
+     std::cout << "Field::to_file_format(): glom_type=" << glom_type << std::endl;
+
   if(glom_type == TYPE_IMAGE)
   {
+   if(!value.gobj())
+    {
+      std::cout << " Field::to_file_format(): TYPE_IMAGE but null gobj()" << std::endl;
+    }
+
+    if(value.gobj() && (value.get_value_type() != GDA_TYPE_BINARY))
+    {
+      GType gtype = value.get_value_type();
+      std::cout << " Field::to_file_format(): TYPE_IMAGE but not GDA_TYPE_BINARY. gda_type=" << g_type_name(gtype) << std::endl;
+      const gchar* gtypename =  g_type_name(gtype);
+      if(gtypename)
+        std::cout << "   gda_type name=" << gtypename << std::endl;
+    }
+
     if(!value.gobj() || (value.get_value_type() != GDA_TYPE_BINARY))
       return Glib::ustring();
  
     const GdaBinary* gdabinary = gda_value_get_binary(value.gobj());
     if(!gdabinary)
+    {
+      std::cout << "Field::to_file_format(): null gdabinary" << std::endl;
       return Glib::ustring();
+    }
     else
     {
+      std::cout << "Field::to_file_format(): processing binary" << std::endl;
       gchar* str = gda_binary_to_string(gdabinary, 0);
       Glib::ustring result = (str) ? 
         Glib::ustring(Glib::ScopedPtr<char>(str).get()) : Glib::ustring();
diff --git a/glom/libglom/document/document.cc b/glom/libglom/document/document.cc
index af1aa0e..5a74ab6 100644
--- a/glom/libglom/document/document.cc
+++ b/glom/libglom/document/document.cc
@@ -3368,6 +3368,7 @@ bool Document::save_before()
 
                 xmlpp::Element* nodeField = nodeExampleRow->add_child(GLOM_NODE_VALUE);
                 set_node_attribute_value(nodeField, GLOM_ATTRIBUTE_COLUMN, field->get_name());
+                std::cout << "debug: calling set_node_text_child_as_value() for field name=" << field->get_name() << std::endl;
                 set_node_text_child_as_value(nodeField, row_data[i], field->get_glom_type()); 
               } // for each value
             } // !row_data.empty
