Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-10-2011, 05:12 AM   #1 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Question GoogleDocs api- uploading an html entry with base64 encoded images

Hi all,
I'm uploading to Google Docs html entries (using mime type text/html)
with images encoded in base64 (I'm using the objective-c Google Docs api).
The html img tag appears like:
<img src='data:image/jpeg;base64, myEncodedString' />, where
myEncodedString is the img data encoded with base64.
The upload is successful, except that the image isn't displayed.
The encoding is right (I've decoded the string back to the original
image).
The rest of document is well displayed with the right formatting
(font, size, color etc, set in the html).
Is a Google Docs server problem? or?
Any hint is welcomed, I'm becoming crazy
Thanks,
Fran
franium is offline   Reply With Quote
Old 11-22-2011, 04:52 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 3
AdamC is on a distinguished road
Default

Sound like the mime type is incorrect on display.

Try decoding it from base4 then set mime to image/jpeg on output.

Should work.
AdamC is offline   Reply With Quote
Reply

Bookmarks

Tags
base64, google api, html, image

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 316
7 members and 309 guests
chemistry, Dnnake, iOS.Lover, jenniead38, lendo, Leslie80, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0