new to java world so as i found there is no simple way to get
image file from url like : http://example.com/image.jpg.
What i need just to get file from url and store it to db.
So we need to use buffer, stream and stuff to get file. I found this code
but i guess there is a way to get things
url.
On Monday, October 15, 2012 1:06:19 PM UTC+4, Yakovlev Roman wrote:
Hi
I am pretty new to java world so as i found there is no simple way to get
image file from url like : http://example.com/image.jpg.
What i need just to get file from url and store it to db.
So we need to use buffer
On 16/10/12 13:25, Zhitong He wrote:
another way to solve this, from
http://users.utu.fi/machra/posts/2011-08-24-2-reddit-clojure.html
(ns myapp.app
(:require [clojure.java.io :as io]))
(defn copy [uri file]
(with-open [in (io/input-stream uri)
out
; {:as :byte-array})
2012/10/15 Yakovlev Roman felix...@gmail.com
Hi
I am pretty new to java world so as i found there is no simple way to get
image file from url like : http://example.com/image.jpg.
What i need just to get file from url and store it to db.
So we need to use buffer, stream and stuff
:
wrote:
I think you can use clj-http:
https://github.com/dakrone/clj-http
(client/get http://site.com/favicon.ico; {:as :byte-array})
2012/10/15 Yakovlev Roman feli...@gmail.com javascript:
Hi
I am pretty new to java world so as i found there is no simple way to
get image file from url
you can use clj-http:
https://github.com/dakrone/clj-http
(client/get http://site.com/favicon.ico; {:as :byte-array})
2012/10/15 Yakovlev Roman feli...@gmail.com javascript:
Hi
I am pretty new to java world so as i found there is no simple way to get
image file from url like : http
there is no simple way to
get image file from url like : http://example.com/image.jpg.
What i need just to get file from url and store it to db.
So we need to use buffer, stream and stuff to get file. I found this
code but i guess there is a way to get things simplier.
(defn fetch-data [url
killme2...@gmail.com
wrote:
I think you can use clj-http:
https://github.com/dakrone/clj-http
(client/get http://site.com/favicon.ico; {:as :byte-array})
2012/10/15 Yakovlev Roman felix...@gmail.com
Hi
I am pretty new to java world so as i found there is no simple way to
get image file from