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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -