Hi,

exist a possibility write a raw object into a mysql blob column?

My first trial and a second with a rawToChar after .jserialize didn't work.

mobj <- .jserialize(model)
> str(mobj)
raw [1:203761] ac ed 00 05 ...
sqlstring=paste("Insert into testtable (varname,number,model) values(",modelName,",",modelID,",",mobj,")",sep="",collapse="")
#con is a RJDBC Connection
dbSendUpdate(con,sqlstring)

Thanks for advance
Christian

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to