ibm mobilefirst - WorkLight SQL Adapter : Upload an image using SQL Adapter -


i need upload image database blob type using sql adapter , need know how blob data sql adapter.will please me inserting , retrieving blob data through sql adapter.

taken an old forum post:

here think of.

  1. write servlet or whatever equivalent in app server. in servlet, fetch image db.
  2. encode image binary contents according base64.
  3. return base64 string of image.
  4. write http adapter visit servlet write.
  5. in client application, can insert image setting "src" attribute value "data:charset=some_charset, ". example, "data:image/gif;base64,".

message mingzhehuang.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -