Yes, but then you're not storing an image.  And whatever you are doing
you're doing rather inefficiently.

(And if XML would work, JSON would be a better choice in about 95% of
cases.)

On Mar 23, 3:18 pm, Jonathan Foley <jonefo...@gmail.com> wrote:
> That's not entirely true, one could base64 encode the image bytestream
> and store it in xml, alternatively one could store the image files
> themselves and just store their path in the xml file.
>
> Jonathan
>
> On Mar 23, 3:59 am, DanH <danhi...@ieee.org> wrote:
>
> > Well, you can't put images in XML.
>
> > If this is really a "formatted document" in one single byte stream the
> > most logical choice would be a flat file.
>
> > On Mar 22, 4:46 am, -Ernest <kisskam...@gmail.com> wrote:
>
> > > Hello guys,
> > > Thanks for making android a wonderful platform.
> > > Me and my mate are writing a project and its an android app.
> > > Yesterday i finish my third book about programing for
> > > the android platform "Hello, Android".
>
> > > He comes my questions:
> > > What is the best option for saving a well formatted document(a
> > > document with images) on a device?
> > > I know this can be done by saving to a XML file or on a database, but
> > > which of these
> > > two is the most preferable.
>
> > > Hope the question was clear.
>
> > > Thanks in advance.
> > > -Ernest

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to