Answers for "python to tell file extension in base64"

7

javascript find file extension from string

var ext =  fileName.split('.').pop();
Posted by: Guest on March-04-2020
0

how to download file in python

import urllib2

filedata = urllib2.urlopen('http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg')
datatowrite = filedata.read()
 
with open('/Users/scott/Downloads/cat2.jpg', 'wb') as f:
    f.write(datatowrite)
Posted by: Guest on March-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language