--- modules/blogapi/blogapi.module.orig	2008-04-05 00:44:23.000000000 -0400
+++ modules/blogapi/blogapi.module	2008-04-07 23:16:39.000000000 -0400
@@ -374,6 +374,11 @@ function blogapi_metaweblog_new_media_ob
   $name = basename($file['name']);
   $data = $file['bits'];
 
+  // check for base64-encoded data, and decode if so
+  if ( $decoded_data = base64_decode($data)) {
+    $data = $decoded_data;
+  }
+
   if (!$data) {
     return blogapi_error(t('No file sent.'));
   }
