# How can I export images in Database?

**URL:** <https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [April 12, 2018, 7:30pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411 "2018-04-12T19:30:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![info-eutester](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@info-eutester](https://forum.wixstudio.com/u/info-eutester)\
**Post date:** [April 12, 2018, 7:30pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411/1 "2018-04-12T19:30:38Z")

</div>

Hi,  
I created a database which collect images from users. When I try to export the database to csv file, the file only contain a url which I cannot open in Chrome. So I am wondering how can I download all the images in my Database?  
Thanks,  
EuTester

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [September 14, 2019, 3:06pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411/2 "2019-09-14T15:06:23Z")

</div>

I see what you mean, the export to CSV dumps the wix-path into the data. There is not much you can do about it using this function. You have 3 options:

1. in excel or LibreOffice or whatever you use that has a programming language, post process the data iwth the example code below)
2. write your own export to file. Corvid dosn´t support it out of the box, but I believe Steve Cropper once wrote a good tutorial on this very forum to do it anyway  
3)write simple Corvid code, output it to a text box and copt/paste by hand.

Below my latest version of the function that converts a wix-image address to a URL that it useable from outside Wix:

```javascript
export function getFullImageURL(imageSRC) {
 //convert the wix:image url to something that can be displayed inside html-component
 let strReturnImage = "";
 if (imageSRC.startsWith("image:")) {
 let wixImageURL = "";
        wixImageURL = "https://static.wixstatic.com/media/";
 let wixLocalURL = "";
        wixLocalURL = imageSRC.replace('image://v1/', '');
        wixLocalURL = wixLocalURL.substr(0, wixLocalURL.indexOf('/'));
        strReturnImage = wixImageURL + wixLocalURL;
    } 
 else if (imageSRC.startsWith("wix:image:")) {
 let wixImageURL = "";
        wixImageURL = "https://static.wixstatic.com/media/";
 let wixLocalURL = "";
        wixLocalURL = imageSRC.replace('wix:image://v1/', '');
        wixLocalURL = wixLocalURL.substr(0, wixLocalURL.lastIndexOf('/'));
        strReturnImage = wixImageURL + wixLocalURL;
    }
 else {
        strReturnImage = imageSRC;
    }
 return strReturnImage;

```

---

<div class="post-metadata">

**Author:** ![karlpercival](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/karlpercival/32/17649_2.png) [@karlpercival](https://forum.wixstudio.com/u/karlpercival)\
**Post date:** [March 11, 2020, 5:01pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411/3 "2020-03-11T17:01:12Z")

</div>

What’s the point of having images if you can’t download them, I’ve created an online brochure to connect directly to my indesign and find that the images are useless unless I download each individually and then paste to a database.  
Easy with one or two but not with thousands. What a waste of time, this really needs sorting out or let people know before they start developing. Arrggghhh! 😠

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [March 11, 2020, 7:07pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411/4 "2020-03-11T19:07:10Z")

</div>

Please refer to old posts in a link on your new forum post if you need to bump old posts.

Use Giri Zano code if you need to download the pictures directly.

Otherwise, when you export the dataset from Wix, it will just download the file url for the image which is where it is stored in your Wix Media Mnaager.  
[https://www.wix.com/corvid/reference/$w.Image.html](https://www.wix.com/corvid/reference/$w.Image.html)

**Image**  
Images are images stored in the [Media Manager](https://support.wix.com/en/article/about-the-media-manager) or retrieved from an external web location.

The URL formats for images are:

- Images from the Media Manager: wix:image://v1//#originWidth=&originHeight=[&watermark=\<watermark\_manifest\_string\>]

- Images from the web: http(s)://

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [March 11, 2020, 7:07pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411/5 "2020-03-11T19:07:19Z")

</div>

Do I understand correctly that you have created an online brochure in Wix and you want to incorporate images from an external source, like indesign? If so, you can: the image objects takes 2 kinds of images: wix images (stored in a db) and a plain URL. So if indesign stores imaes as a plain URL, you just have to point towards it.

---

<div class="post-metadata">

**Author:** ![lesexy78](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lesexy78/32/14114_2.png) [@lesexy78](https://forum.wixstudio.com/u/lesexy78)\
**Post date:** [March 11, 2020, 7:12pm UTC](https://forum.wixstudio.com/t/how-can-i-export-images-in-database/39411/6 "2020-03-11T19:12:26Z")

</div>

Hi giri excuse me to contact you here but can you assist me to fix an issue on my mobile version’s wix website ?
