Re: CompressedData in Buttons
- To: mathgroup at smc.vnet.net
- Subject: [mg120592] Re: CompressedData in Buttons
- From: John Fultz <jfultz at wolfram.com>
- Date: Sat, 30 Jul 2011 06:01:20 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Reply-to: jfultz at wolfram.com
On Fri, 29 Jul 2011 08:02:39 -0400 (EDT), A Retey wrote: > Hi, > >> I have some Buttons that display various data, e.g., area, >> population, density, etc. of U.S. states, and would like to update >> the data. I have only the buttons, not the Input code that produced >> them long ago. Using Show Expression on the button reveals that, >> instead of being in List form, much of the data appears as >> "CompressedData[ ... (gibberish) ...]. >> >> How can I recover the original, uncompressed, data so that I can >> revise it? I found nothing in the Documentation Center or Virtual >> Book, and none of the 74 hits on wolfram.com appear to shed any >> relevant light. >> > I think you will just need to apply Uncompress to the "glibberish", > which should be a string. If you have the CompressedData[..] as an > expression, you can convert the compressed part with: > > CompressedData["..."] /. Verbatim[CompressedData][s_String] :> > Uncompress[s] > > hth, > > albert Actually, the symbol CompressedData is just an alias for Uncompress. So simply evaluating the CompressedData expression in a kernel would work. Sincerely, John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc.