Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
Not applicable

Extracting Image from existing QVW

Hi,

I have a qvw file not developed by me.

There are some images in that QVW file which i want to use.

Is there any way to extract that images?

Please help me on this.

Thanks in advance.

10 Replies
Not applicable

Extracting Image from existing QVW

Hi,

is this an application from qliktech download side and mybe developed from qliktech?

Or in other words what kind of images you are looking for?

Rainer

montubhardwaj
Valued Contributor

Extracting Image from existing QVW

Hi,

If I got you right, you want to use or extract the images from a QV application. The simplest way to do this is just right click on the object(image) and choose option "copy to clipboard" and choose as Image. Now you can paste this object or image in Word doc or Excel or so.

Hope this was helpful.

Regrds,

Dinesh Sharma

Not applicable

Extracting Image from existing QVW

Thanks for the reply Rainer.

Once i have developed one QVW file there i used one image.

Now i am unable to find the location for that image as i need to use same image in other QVW file.

Can let me know how can i resolve it.

Thanks in advance.

Not applicable

Extracting Image from existing QVW

Hi,

maybe Dineshs idea works for you. Otherwise you need to do a search for *.bmp or *.jpg as example.

Sorry!

Rainer

Not applicable

Re: Extracting Image from existing QVW

I just figured out how to do this myself. We had consultants that built a couple QVW applications for us and I wanted to use the same background image, company logo's etc.. they did. But the images were no where to be found. So I set out to figure it out.

Basically images are Base64 encoded in the QVW.

Note - these steps were done in QlikView 11.2 SR1 - so your milage may vary.

Here are the steps:

To extract embedded images in a QlikView application (.qvw file).

==========================================================================

1) Create a directory to export the document layout into.

2) Open QVW file.

3) File --> Export --> Export Document Layout

4) Select directory you created and click "Ok" - full document layout will be exported into this directory.

5) Open .xml file and copy out the base64 encoded "text".

   For instance the document "wallpaper".

   Open: DocProperties.xml

   Go to "WallpaperPic" XML tag.

   Copy everything between <WallpaperPic enctype="base64"> and </WallpaperPic>

  

   Or in a text Object:

   Open the TX##.xml file.

   Go to the  <Bmp enctype="base64"> tag

   Copy everything between  <Bmp enctype="base64"> and  </Bmp>

Basically - any .xml file with an XML tag with a "base64" property on it is an embedded binary (image, audio, video etc...) or text. You just have to know which kind it is.

  

Go to:

Base64 Online - base64 decode and encode

http://www.motobit.com/util/base64-decoder-encoder.asp

Conversion Steps:

1) Copy/Paste the Base64 encoded "text" into the text box

2) Select "decode the data from a Base64 string (base64 decoding) "

3) Output data:

    If a Binary object:

    "export to a binary file" - set "filename:" to the name of the file to export to with a .png extention (or whatever extention type of the binary).

    If text:

    "output to a textbox (as a string)"

Hope this helps (this is my first "solution" on QlikCommunity).

Partner
Partner

Re: Extracting Image from existing QVW

Richard, your solution worked for me.

Thank you!

Not applicable

Re: Extracting Image from existing QVW

Hello Richard,

I tried to follow your steps,but in the .xml I only find the first sentence: <WallpaperPic enctype="base64">.

I don´t find the second sentence: </WallpaperPic>.

Am I doing something wrong?

Please help

Thank you

Best regards,

Raquel Oliveira

Re: Extracting Image from existing QVW

Hi Richard,

Yes. I am also unable to find the </WallpaperPic> tag.

Kind Regards,

Tamil

Not applicable

Re: Extracting Image from existing QVW

Sorry this took so long. I haven't been working in QlikView for a while and hadn't been very active here.
Is your tag like <WallpaperPic enctype="base64"/> maybe (note the "/" at the end)? If so this would indicate that there isn't an encoded image there. I just tested this with the version we are on now 11.2 SR3 and it still works. What version of QlikView are you using? If it's newer than 11.2 SR3 it might mean they changed the layout tag possibly.