Extract Base64 data sets from a Swiffy file - json

Extract Base64 data sets from a Swiffy file
Anyone had experience with this? I had a swf file converted to html and all my images have been converted into base64 in one document.
how can i extract all the images from the html is there a program that can detect base 64 or at least detect multiple images in a html/txt file?

I just extracted from a Swiffy HTML file an MP3 file encoded as base64:
http://www.casedasole.it/testing/swiffy.html
...like this:
opened HTML file in Textpad and searched for "base64"
found this: "data:audio/mpeg;base64,fQb/4yDAA [etc., ending with] CAAIAAgAAA\u003d" (all between one set of quote marks)
copied from fQb/ down to AAgAAA (ignored \u003d")
pasted text into http://www.freeformatter.com/base64-encoder.html, clicked DECODE
was prompted with "A binary file can't be displayed inline and you will therefore be prompted to save the output as a file attachment", clicked yes, downloaded file, and added extension .mp3 to the downloaded file
It plays (in desktop FF and Chrome, with autoplay)! http://www.casedasole.it/testing/swiffy-base64.html
It wasn't an image, but with the same procedure you should be able to spot and extract images. Lemme know.

Related

how can i extract images from a "900Mb html file" containing base64 data string images

i have html file which contains about 4000 images as base64 data string
in this form
<div id="results"><img src="data:image/png;base64,iVBORw0KGgoAAAA........IwRkIBpBM9">
</div>
how can i extract every image in the file as a numbered images from 1 to 4000 or so.
i couldn't find a way to download all the images using any available software and the html is not being opened with notepad++ because file is too big so i do not have an easy way to edit the codes
thanks for help

Should my index.html file be a text file?

so i am pretty new to this and i was wondering if the index.html file for my site is supposed to be a text file (also, i'm on Windows 10). When i create the index.html file in file explorer the file that makes the most sense to me is a text file. (The files are: bitmap image, contact, rich text document, text document, and compressed zipped folder), So i would assume i'm supposed to pick text document. The folder ends up looking like index.html.txt, not sure if this is how i'm supposed to do it.
Start notepad, or an editor of your choice.
Type in the content you want for your file.
Save-As “Index.html” in the location you desire.
Well, the file extension is in the name itself ".html" just the same as a Cascading Style Sheet (CSS) file would be saved as a ".css" file and a Javascript file as ".js"
Everything after the "." is the type of file.
Yep, everyone above answered correctly. You want to save the file in a plain-text format with a .html at the end. Then you can open it in a browser like Internet Explorer and it will interperate the file as an HTML page.
You can use a program like CoffeeCup to easily edit HTML files and it will save them as plain-text.
You can't edit HTML files in rich-text editors like Word.

Can we save an image into .doc file with AS 3.0

I am loading an external .jpg file into flash through AS3.0 with Loader class and later I need to save the image file into .doc with FileReference Class... Is it possible?
Please Help me...
Thanks a ton..
Wow... this is a good question! Yes this is possible, but not all through Flash.
REQUIRED: Flash / PHP
How to (I'll add full examples later):
(1) create a php page that will accept the raw post output
(2) set the headers on the php page to match a .doc file
(3) send the image data from Flash to PHP, have php serve the .doc file back
What this will do is allow the user to send/save the image in Flash, and have a download context box popup to save the .doc file.

Converting RTF file having images to HTML

I am using Windows Application to develop my project. There is one case, in which i need to convert RTF file to HTML and printing it. In the RTF file containing images also. In simple i can convert RTF to HTML. But images cant convert. it not there in the HTML file.
So can anyone give some idea regarding same that how can i do convert RTF file data including Images to HTML file?
Thanks in Advance.
In HTML you can embed an image as Base64 encoded. See here, with a data: URL. How the binary bytes can easily be converted to Base64 ASCII I do not know.

How to force the filename extension of a downloaded gzipped data URI?

I have a GZipped JavaScript file which I am encoding with a data:URI.
For example:
My Javascript File
When the user right-clicks and saves this file (in Chrome) I would like the resulting file's name to be download.js.gz. This way when the user double clicks this file (in Mac OS X), it gets decompressed and renamed correctly to download.js, and they can view the contents easily.
The problem is that when I use the content type text/javascript (or application/x-javascript), the file gets saved as download.js. And when I use the content type application/x-gzip, the file gets saved as download.gz.
Is there any way to get the file to be saved as .js.gz?
Here's a working example of both links: http://jsfiddle.net/xYm8w/3/
The file must be a data uri and not a link to an actual file. I tried changing the text between the <a> tags, but it doesn't affect anything at all.
There doesn't seem to be a way to do this in browsers besides Chrome. Therefore, the best option I could think of is to inform the user to save the file normally (so that it automatically inserts the proper extension based on the content type), and then having them go into finder and renaming the file to append the '.gz' extension.
On Chrome, though, you can use the download attribute of the <a> tag (which I found out by this answer). Example: http://jsfiddle.net/pYpqW/