Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
export all images urls from csv file and save images in folder with different names

What I have tried:

I have tried but only one image goes to folder
Posted
Updated 3-Feb-21 4:23am
v2
Comments
20212a 3-Feb-21 9:17am    
If you only get one image then you need to put your code into a loop and loop through all of the rows in the csv file.

Also, if you want anyone to help you need to post the relevant code and explain where you are stuck.
Richard Deeming 3-Feb-21 10:01am    
CSV files do not contain images. They contain text.

Click the green "Improve question" link and update your question to include a better description of the problem, a sample of your data, and details of what you have tried and where you are stuck.

1 solution

CSV is just a row based basic text data format: string values separated by colons at it's simplest, with the addition of double quotes to allow "special characters" such as comma and newline to be included in strings. To include images, they would probably be string encoded by something like Base64.

If your code is retrieving an image from CSV data, then it "knows" how to process it, which is fine - but you need to check the number of rows in the file, and if that exceeds one (or one plus a header row) then look at your code to see what it does once it has identified and extracted one image.

We can't do that for you: we have no idea what code you have written, or how it works!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900