Hi Rahul, You are correct that the data is Base64-encoded. The example you have given looks like a valid JPEG file, so you should be able to Base64-decode that and load it into an image viewer.
“object of type Rest” in swfmill means some arbitrary binary data, Base64-encoded. To figure out what that binary data should be, you need to look up the corresponding SWF tag in the SWF Specification ( http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf ). In the case of DefineBitsJPEG2 the data may be JPEG image data or, when targeting Flash 8 or later and in spite of the name of the tag, PNG or GIF image data. Hope this helps, Dan. On 19 June 2012 20:06, Rahul Dhodapkar <[email protected]> wrote: > Dear All, > > I am trying to discern the encoding of a DefineBitsJPEG2 tag that was > created using the swfmill swf2xml utility. It looks to be something like > base64 encoding or something like that but when I try and run the string > through a decoder to get back to JPEG format it does not work. Looking up > the swfmill documentation revealed that the data tag should be an "object > of type Rest" but when I tried to click the link to find out what that > meant it was broken or had never been created or something. Basically what > I am trying to do is swap out the image below with one that I want to > include, so I need to convert the format of my own .jpg into something that > is compatible with the swfmill format. Does anyone know how I would go > about doing this? Thank you for all your help and I have attached a bit of > the relevant tag below for reference (the full tag was too big and got > bounced) > > -Rahul Dhodapkar > > <DefineBitsJPEG2 objectID="48"> > <data> > > <data>/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDRURCwwYERkcGREQDAwOFRkcJzAlGSEcEBENGCEgICBAQEBAMCAZGRwZHCUwQEBAQDQnHCg0QEBAQDBAQED/2wBDAREQEhYWEBIWFx0gHBcSExIVFhwgKDYvJSgcEhYSFigxMSxAQEBANiwlHBwcIC82P0BAQDEoICgxQEBAQDZAQED/wAARCAB7ASwDASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAABAUBAgMGAAf/xABCEAACAQMCAwYEAwUFCAIDAAABAhEAAyEEEjFBUQUTImFxgTKRobFCwdEUI1Jy8AYVJGKCMzRDkqKy4fEWU3OTwv/EABkBAAMBAQEAAAAAAAAAAAAAAAECAwAEBf/EADMRAAEDAQUGBgEEAgMAAAAAAAEAAhE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4qFRDBmJXyAEn2k > [...] > </data> > </data> > </DefineBitsJPEG2> > > _______________________________________________ > swfmill mailing list > [email protected] > http://osflash.org/mailman/listinfo/swfmill_osflash.org > >
_______________________________________________ swfmill mailing list [email protected] http://osflash.org/mailman/listinfo/swfmill_osflash.org
