Skip to content
Prev 315279 / 398503 Next

readJPEG function cannot open jpeg files

On 14/01/2013 16:26, Suzen, Mehmet wrote:
Not a similar issue at all: a URL is not a file.  That most functions in 
R itself open connections including URLs does not mean that contributed 
packages do.  The package help is quite specific about its requirements.

   source: Either name of the file to read from or a raw vector
           representing the JPEG file content.

Which suggests to you how you can do this, apart from download.file, of 
course.  Something like

readJPEG(readBin(yesWeCan, "raw", 1e6))